public class sS_State extends State
Constructor and Description |
---|
sS_State(sS_StateDescriptor descriptor) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object state) |
ArrayList<Action> |
getFeasibleActions()
Returns an
ArrayList<Action> of feasible actions for this
State . |
int |
getInitialIntState() |
static int |
getMaxIntState() |
static double |
getMaxInventory() |
static int |
getMinIntState() |
static double |
getMinInventory() |
Action |
getNoAction()
Returns the idempotent
Action for this State . |
static double |
getStepSize() |
int |
hashCode() |
static int |
inventoryToState(double inventory) |
static void |
setStateBoundaries(double stepSize,
int minIntState,
int maxIntState)
Initializes the state space boundaries.
|
static double |
stateToInventory(int state) |
String |
toString() |
public sS_State(sS_StateDescriptor descriptor)
public static void setStateBoundaries(double stepSize, int minIntState, int maxIntState)
stepSize
must be one if
DiscreteDistributionInt
are used.stepSize
- the discretization step used to encode the state spaceminIntState
- the minimum integer value used to encode a statemaxIntState
- the maximum integer value used to encode a statepublic static double getStepSize()
public static double stateToInventory(int state)
public static int inventoryToState(double inventory)
public static int getMinIntState()
public static int getMaxIntState()
public static double getMinInventory()
public static double getMaxInventory()
public int getInitialIntState()
public ArrayList<Action> getFeasibleActions()
State
ArrayList<Action>
of feasible actions for this
State
.getFeasibleActions
in class State
ArrayList<Action>
of feasible actions.public Action getNoAction()
State
Action
for this State
.getNoAction
in class State
Action
for this State
.Copyright © 2017–2018. All rights reserved.