kaos.robots.util
Class PointArtifact

java.lang.Object
  extended by kaos.robots.util.Artifact
      extended by kaos.robots.util.PointArtifact
All Implemented Interfaces:
Plottable

public class PointArtifact
extends Artifact


Constructor Summary
PointArtifact(java.lang.String id)
           
 
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 kaos.robots.util.Artifact
getID, getLevel, getType, setID, setLevel, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointArtifact

public PointArtifact(java.lang.String id)
Method Detail

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