public class StraightMovement extends Effector
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_LABEL
Default label.
|
static double |
DEFAULT_SCALING_FACTOR
Default scaling factor.
|
Constructor and Description |
---|
StraightMovement(RotatingEntity parent,
java.lang.String label)
Construct the straight movement effector.
|
Modifier and Type | Method and Description |
---|---|
double |
getAmount() |
double |
getScalingFactor() |
java.lang.String |
getTypeDescription()
Short description of the effector type.
|
void |
setAmount(double amount) |
void |
setScalingFactor(double scalingFactor) |
void |
update()
Move the agent in a manner appropriate to the effector type.
|
public static final double DEFAULT_SCALING_FACTOR
public static final java.lang.String DEFAULT_LABEL
public StraightMovement(RotatingEntity parent, java.lang.String label)
parent
- parent entity.label
- descriptive labelpublic void update()
Effector
public double getAmount()
public void setAmount(double amount)
amount
- the amount to setpublic double getScalingFactor()
public void setScalingFactor(double scalingFactor)
scalingFactor
- the scalingFactor to setpublic java.lang.String getTypeDescription()
Effector
getTypeDescription
in class Effector