kaos.robots.util
Class PointArtifact
java.lang.Object
kaos.robots.util.Artifact
kaos.robots.util.PointArtifact
- All Implemented Interfaces:
- Plottable
public class PointArtifact
- extends Artifact
Method Summary |
void |
draw(java.awt.Graphics g,
int Xcenter,
int Ycenter,
int scaleFactor)
Must provide a draw method for plotter to render artifact |
double |
getMean(java.util.Vector buffer)
|
static double |
getMedian(java.util.Vector buffer)
|
double |
getStdDev(java.util.Vector buffer,
double mean)
|
void |
setColor(java.awt.Color color)
|
void |
setCoordinate(Coordinate coordinate)
|
void |
setHistoryLength(int length)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PointArtifact
public PointArtifact(java.lang.String id)
setCoordinate
public void setCoordinate(Coordinate coordinate)
setColor
public void setColor(java.awt.Color color)
setHistoryLength
public void setHistoryLength(int length)
getMedian
public static double getMedian(java.util.Vector buffer)
getMean
public double getMean(java.util.Vector buffer)
getStdDev
public double getStdDev(java.util.Vector buffer,
double mean)
draw
public void draw(java.awt.Graphics g,
int Xcenter,
int Ycenter,
int scaleFactor)
- Must provide a draw method for plotter to render artifact
- Specified by:
draw
in interface Plottable
- Specified by:
draw
in class Artifact