be.ac.ua.broker.allocation.spot.model
Class State
java.lang.Object
be.ac.ua.broker.allocation.spot.model.State
public class State
- extends java.lang.Object
The State class represents a certain state of a simulation. It contains the
source record, parameter, the corresponding task and an array of checkpoints.
- Author:
- Vermeersch Kurt (Based on Sangho Yi c++ implementation of the spot
model)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
State
public State(SrcRecord rec,
Parameter par,
Task task,
Checkpoint[] ckps)
- Constructor for State
- Parameters:
rec
- the source recordpar
- the parameter containing certain time valuestask
- the task that is being simulatedckps
- the data of the checkpointing schemes that are being simulated
getSourceRecord
public SrcRecord getSourceRecord()
- Returns:
- the source record corresponding to the state
getParameter
public Parameter getParameter()
- Returns:
- the parameter containing certain time values
getTask
public Task getTask()
- Returns:
- the task that is being simulated
getCheckpoint
public Checkpoint getCheckpoint(int scheme)
- Getter for the checkpoint of the specified checkpointing scheme
- Parameters:
scheme
- the checkpointing scheme to get the data for
- Returns:
- the requested checkpoint