public class StateImpl extends State
State
.Constructor and Description |
---|
StateImpl(StateDescriptorImpl descriptor) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object state) |
int |
getInitialIntState() |
double |
getInitialState() |
static int |
getMaxIntState() |
static double |
getMaxState() |
static int |
getMinIntState() |
static double |
getMinState() |
static double |
getStepSize() |
int |
hashCode() |
static double |
intStateToState(int intState) |
static void |
setStateBoundaries(double stepSize,
double minState,
double maxState)
Initializes the state space boundaries.
|
static int |
stateToIntState(double state) |
String |
toString() |
getFeasibleActions, getNoAction, getPeriod
public StateImpl(StateDescriptorImpl descriptor)
public static void setStateBoundaries(double stepSize, double minState, double maxState)
stepSize
must be one if
DiscreteDistributionInt
are used.stepSize
- the discretization step used to encode the state spaceminState
- the minimum value used to encode a statemaxState
- the maximum value used to encode a statepublic static double getStepSize()
public static double intStateToState(int intState)
public static int stateToIntState(double state)
public static int getMinIntState()
public static int getMaxIntState()
public static double getMinState()
public static double getMaxState()
public int getInitialIntState()
public double getInitialState()
Copyright © 2017–2018. All rights reserved.