public class Speech extends Effector
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_PHRASE
Default phrase.
|
static double |
DEFAULT_THRESHOLD
Default threshold.
|
Constructor and Description |
---|
Speech(OdorWorldEntity parent,
java.lang.String phrase,
double threshold)
Construct the speech effector.
|
Modifier and Type | Method and Description |
---|---|
double |
getAmount() |
java.lang.String |
getPhrase() |
double |
getThreshold() |
java.lang.String |
getTypeDescription()
Short description of the effector type.
|
boolean |
isActivated() |
void |
setActivated(boolean activated) |
void |
setAmount(double amount) |
void |
setPhrase(java.lang.String phrase) |
void |
setThreshold(double threshold) |
void |
update()
Move the agent in a manner appropriate to the effector type.
|
public static final java.lang.String DEFAULT_PHRASE
public static final double DEFAULT_THRESHOLD
public Speech(OdorWorldEntity parent, java.lang.String phrase, double threshold)
parent
- parent entityphrase
- the phrase associated with this effectorthreshold
- public void update()
Effector
public java.lang.String getPhrase()
public void setPhrase(java.lang.String phrase)
phrase
- the phrase to setpublic boolean isActivated()
public void setActivated(boolean activated)
activated
- the activated to setpublic double getAmount()
public void setAmount(double amount)
amount
- the amount to setpublic double getThreshold()
public void setThreshold(double threshold)
threshold
- the threshold to setpublic java.lang.String getTypeDescription()
Effector
getTypeDescription
in class Effector