public class ResourceBelieve extends Belief implements IResourceBelief
Constructor and Description |
---|
ResourceBelieve(java.lang.String name,
int amount)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getAmountAvailable() |
float |
getTruthValue()
Returns the truth value associated with this believe as a value between
0.0 (false) and 1.0 (true)
|
public ResourceBelieve(java.lang.String name, int amount)
name
- Belief nameamount
- Maximum amountpublic float getTruthValue()
IBelief
getTruthValue
in interface IBelief
getTruthValue
in class Belief
public int getAmountAvailable()
getAmountAvailable
in interface IResourceBelief