public class FunctionBehavior extends BasicMotorBehavior
UNNAMED_FILE_TXT
Constructor and Description |
---|
FunctionBehavior(java.lang.String name,
IThoughtModel thoughtModel,
ParameterMap params,
float slowDown,
float startSlowDown)
Default constructor for motor behaviors
|
FunctionBehavior(java.lang.String name,
IThoughtModel thoughtModel,
java.lang.String filename,
float slowDown,
float startSlowDown)
Default constructor for motor behaviors
|
Modifier and Type | Method and Description |
---|---|
BasicMotorBehavior |
copy()
Creates a copy of this instance
|
void |
reload()
Reloads this behaviors.
|
addNewMotorManager, fixCurrentStep, getAbsoluteFilepath, getCurrentStep, getFilePath, getMotorManagerNames, getMotorManagers, getPeriod, getSlowDownFactor, getStartSlowDownFactor, init, perform, reAddMotorManager, removeMotorManager, saveToFile, setFilePath, setSoftLogging
isFinished, setFinished, stayIn
abort, getConsecutivePerforms, getIntensity, getName, getPerforms, getRootBehavior, getSuccessfulPerforms, getUnsuccessfulPerforms, onLeavingBehavior, setIntensity, setName, switchFrom, toString
public FunctionBehavior(java.lang.String name, IThoughtModel thoughtModel, java.lang.String filename, float slowDown, float startSlowDown)
name
- identifier for this behaviorthoughtModel
- Reference to the thought model objectfilename
- the name of a file containing the parameters for this
behaviorslowDown
- factor of the speed with which the behavior is performed.
2 means half the speed.startSlowDown
- the speed to approach the first valuepublic FunctionBehavior(java.lang.String name, IThoughtModel thoughtModel, ParameterMap params, float slowDown, float startSlowDown)
name
- identifier for this behaviorcoordinator
- handle for action sending to serverthoughtModel
- Reference to the thought model objectparams
- parameters to control the behaviorslowDown
- factor of the speed with which the behavior is performed.
2 means half the speed.startSlowDown
- the speed to approach the first valuepublic BasicMotorBehavior copy()
BasicMotorBehavior
copy
in class BasicMotorBehavior
public void reload()
IBehavior
reload
in interface IBehavior
reload
in class MotorBehavior