public class Action
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Modifier | Constructor and Description |
---|---|
protected |
Action(long cPtr,
boolean cMemoryOwn) |
|
Action(Model model,
double cost,
boolean failed)
Action constructor
|
Modifier and Type | Method and Description |
---|---|
protected static long[] |
cArrayUnwrap(Action[] arrayWrapper) |
protected static Action[] |
cArrayWrap(long[] cArray,
boolean cMemoryOwn) |
void |
delete() |
protected void |
finalize() |
double |
getBound() |
protected static long |
getCPtr(Action obj) |
Model |
getModel() |
double |
getRemains() |
ActionState |
getState() |
LmmVariable |
getVariable() |
boolean |
isSuspended() |
void |
setBound(double bound) |
void |
setPriority(double priority) |
void |
setState(ActionState state) |
void |
updateRemains(double delta)
Update remaining amount of cost to do
|
protected Action(long cPtr, boolean cMemoryOwn)
public Action(Model model, double cost, boolean failed)
model
- The model associatedcost
- The cost of the action (e.g., flops, bytes)failed
- If the action has failedprotected static long getCPtr(Action obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
protected static long[] cArrayUnwrap(Action[] arrayWrapper)
protected static Action[] cArrayWrap(long[] cArray, boolean cMemoryOwn)
public Model getModel()
public LmmVariable getVariable()
public ActionState getState()
public boolean isSuspended()
public double getBound()
public void setBound(double bound)
bound
- TODOpublic void updateRemains(double delta)
delta
- Difference of time since last call to this functionpublic double getRemains()
public void setPriority(double priority)
priority
- The new priority of the actionpublic void setState(ActionState state)
state
- The new state