◆ ProbState()
stamina.ProbState.ProbState |
( |
State |
s | ) |
|
|
inline |
Constructor. Sets the current reachability probability to 0, and the state to terminal and not absorbing.
- Parameters
-
s | The state we are building from. |
◆ addToReachability()
void stamina.ProbState.addToReachability |
( |
double |
newReach | ) |
|
|
inline |
Adds to reachability probability, maxing at 1.0
- Parameters
-
newReach | Amount to add to reachability probability. |
◆ getCurReachabilityProb()
double stamina.ProbState.getCurReachabilityProb |
( |
| ) |
|
|
inline |
Gets the current reachability probability of this state.
- Returns
- The current reachability probability.
◆ isStateAbsorbing()
boolean stamina.ProbState.isStateAbsorbing |
( |
| ) |
|
|
inline |
Gets whether or not the state is absorbing
- Returns
- Whether the state is absorbing or not.
◆ isStateTerminal()
boolean stamina.ProbState.isStateTerminal |
( |
| ) |
|
|
inline |
Gets whether or not the state is terminal.
- Returns
- Whether or not the state is terminal
◆ setCurReachabilityProb()
void stamina.ProbState.setCurReachabilityProb |
( |
double |
reachProb | ) |
|
|
inline |
Sets the current reachability probability.
- Parameters
-
reachProb | The new reachability probability. |
◆ setStateAbsorbing()
void stamina.ProbState.setStateAbsorbing |
( |
boolean |
flag | ) |
|
|
inline |
Sets whether or not this state is absorbing.
- Parameters
-
flag | Whether or not this state is absorbing. |
◆ setStateTerminal()
void stamina.ProbState.setStateTerminal |
( |
boolean |
flag | ) |
|
|
inline |
Sets whether or not the state is terminal.
- Parameters
-
flag | Whether or not the state is terminal. |
◆ subtractFromReachability()
void stamina.ProbState.subtractFromReachability |
( |
double |
minusReach | ) |
|
|
inline |
Subtracts from reachability probability, min at 0.0.
- Parameters
-
minusReach | The amount to subtract from reachability probability. |
◆ toString()
String stamina.ProbState.toString |
( |
| ) |
|
|
inline |
Get string representation, e.g. "(0,true,5)".
The documentation for this class was generated from the following file:
- /home/josh/Documents/Work/Research/stamina/stamina/src/stamina/ProbState.java