Class RobotRunningHistory
java.lang.Object
|
+--RobotRunningHistory
- public class RobotRunningHistory
- extends java.lang.Object
RobotRunningHistory
It collect the robotProgram runnings history.
Method Summary |
void |
addStep(java.util.Vector robots,
java.lang.String outputLine)
add (next) step of running. |
int |
currentStep()
|
void |
currentStep(int step)
|
int |
lastStep()
|
void |
paint(java.awt.Graphics g,
int step)
paint the robots at the step. |
java.lang.String |
returnStepOutputLine(int step)
return outputLine of the step, or null if the step is illigal. |
java.util.Vector |
returnStepRobots(int step)
return robotsVector of the step, or null if the step is illigal. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RobotRunningHistory
public RobotRunningHistory(Robot robot)
addStep
public void addStep(java.util.Vector robots,
java.lang.String outputLine)
- add (next) step of running.
returnStepRobots
public java.util.Vector returnStepRobots(int step)
- return robotsVector of the step, or null if the step is illigal.
returnStepOutputLine
public java.lang.String returnStepOutputLine(int step)
- return outputLine of the step, or null if the step is illigal.
paint
public void paint(java.awt.Graphics g,
int step)
- paint the robots at the step.
currentStep
public int currentStep()
currentStep
public void currentStep(int step)
lastStep
public int lastStep()