kaos.robots.util
Class Artifact
java.lang.Object
kaos.robots.util.Artifact
- All Implemented Interfaces:
- Plottable
- Direct Known Subclasses:
- DetectedObjectArtifact, PointArtifact, RobotArtifact, SonarArtifact
public abstract class Artifact
- extends java.lang.Object
- implements Plottable
Constructor Summary |
Artifact(java.lang.String id)
|
Method Summary |
abstract void |
draw(java.awt.Graphics g,
int Xcenter,
int Ycenter,
int scaleFactor)
Must provide a draw method for plotter to render artifact |
java.lang.String |
getID()
|
int |
getLevel()
|
java.lang.String |
getType()
|
void |
setID(java.lang.String id)
|
void |
setLevel(int level)
|
void |
setType(java.lang.String type)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Artifact
public Artifact(java.lang.String id)
draw
public abstract 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
setID
public void setID(java.lang.String id)
setType
public void setType(java.lang.String type)
getID
public java.lang.String getID()
- Specified by:
getID
in interface Plottable
getType
public java.lang.String getType()
- Specified by:
getType
in interface Plottable
getLevel
public int getLevel()
- Specified by:
getLevel
in interface Plottable
setLevel
public void setLevel(int level)