public class CartPoleFullState extends CartPoleState
Modifier and Type | Field and Description |
---|---|
double |
normSign |
v, x
angle, angleV
Constructor and Description |
---|
CartPoleFullState() |
CartPoleFullState(double x,
double v,
double angle,
double angleV,
double normSign) |
Modifier and Type | Method and Description |
---|---|
State |
copy()
Returns a copy of this state suitable for creating state transitions.
|
java.lang.Object |
get(java.lang.Object variableKey)
Returns the value for the given variable key.
|
MutableState |
set(java.lang.Object variableKey,
java.lang.Object value)
Sets the value for the given variable key.
|
java.util.List<java.lang.Object> |
variableKeys()
Returns the list of state variable keys.
|
toString
public CartPoleFullState()
public CartPoleFullState(double x, double v, double angle, double angleV, double normSign)
public java.util.List<java.lang.Object> variableKeys()
State
variableKeys
in interface State
variableKeys
in class CartPoleState
public MutableState set(java.lang.Object variableKey, java.lang.Object value)
MutableState
set
in interface MutableState
set
in class CartPoleState
variableKey
- the key identifier for the variable value to changevalue
- the variable value to which the variable should be set.public java.lang.Object get(java.lang.Object variableKey)
State
get
in interface State
get
in class CartPoleState
variableKey
- the variable keypublic State copy()
State
DeepCopyState
or ShallowCopyState
annotations. If it is a shallow copy, you should not *directly*
modify any fields of a copied state without copying the fields first, or it could contaminate the state from
which the copy was made. Alternatively, use the MutableState.set(Object, Object)
method to modify
ShallowCopyState
copied states,
which for ShallowCopyState
instances should perform a safe copy-on-write operation.copy
in interface State
copy
in class CartPoleState