|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--EDU.gatech.cc.is.abstractrobot.ControlSystemS
This is the superclass for all robot Control Systems. When you create a contol system by extending this class, it can run within JavaBotHard to control a real robot or JavaBotSim in simulation.
Ordinarily this sort of class would be declared abstract. But because robots and control systems must be instantiated on the fly, this class had to be fully implemented. Copyright (c)1997, 1998 Tucker Balch
Field Summary | |
Simple |
abstract_robot
The robot to which the control system is attached. |
static int |
CSSTAT_DONE
Return value from TakeStep(), indicates the mission is complete. |
static int |
CSSTAT_ERROR
Return value from TakeStep(), indicates some sort of error condition has occured. |
static int |
CSSTAT_OK
Return value from TakeStep(), indicates everything is OK. |
long |
seed
The random number seed to use in configuration or whatever. |
Constructor Summary | |
ControlSystemS()
Constructor. |
Method Summary | |
void |
configure()
Override this method if you like, to configure your control system. |
void |
Configure()
Deprecated. to conform with Java naming conventions, use configure(). |
Simple |
getAbstractRobot()
Get a copy of the abstract robot object. |
void |
Init(Simple r)
Deprecated. to conform with Java naming conventions, use init(). |
void |
init(Simple r,
long s)
Initialize the object. |
void |
quit()
Called only once, at the end of the simulation or hard run. |
int |
takeStep()
Called every timestep to allow the control system to run. |
int |
TakeStep()
Deprecated. to conform with Java naming conventions, use takestep() instead. |
void |
trialEnd()
Called at the end of every trial. |
void |
TrialEnd()
Deprecated. to conform with Java naming conventions, use trialEnd() instead. |
void |
trialInit()
Called at the beginning of every trial. |
void |
TrialInit()
Deprecated. to conform with Java naming conventions, use trialInit() instead. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int CSSTAT_OK
public static final int CSSTAT_ERROR
public static final int CSSTAT_DONE
public Simple abstract_robot
public long seed
Constructor Detail |
public ControlSystemS()
Method Detail |
public void Init(Simple r)
public void init(Simple r, long s)
r
- Simple, the robot hardware.s
- long, random number seed.public void Configure()
public void configure()
public Simple getAbstractRobot()
public int takeStep()
public int TakeStep()
public void TrialInit()
public void trialInit()
public void TrialEnd()
public void trialEnd()
public void quit()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |