public class MotorFileBehavior extends MotorBehavior
Constructor and Description |
---|
MotorFileBehavior(java.lang.String name,
IThoughtModel thoughtModel,
ParameterMap params,
java.lang.String filepath,
int slowDown,
int startSlowDown)
Instantiates and initializes a new Balance behavior object
|
Modifier and Type | Method and Description |
---|---|
void |
init()
Reinitializes the Behavior-StateMachine (if present)
|
void |
perform()
Called to perform the behavior
|
isFinished, reload, setFinished, stayIn
abort, getConsecutivePerforms, getIntensity, getName, getPerforms, getRootBehavior, getSuccessfulPerforms, getUnsuccessfulPerforms, onLeavingBehavior, setIntensity, setName, switchFrom, toString
public MotorFileBehavior(java.lang.String name, IThoughtModel thoughtModel, ParameterMap params, java.lang.String filepath, int slowDown, int startSlowDown) throws java.io.IOException
name
- Behavior namethoughtModel
- Reference to the thought model objectparams
- Behavior parametersfilepath
- Path to movement data fileslowDown
- Slow down factorstartSlowDown
- Startup slowDown factorjava.io.IOException
- If the movement data file could not be successfully
opened and parsedpublic void init()
IBehavior
init
in interface IBehavior
init
in class MotorBehavior
public void perform()
IBehavior