be.ac.ua.broker.allocation.spot.model
Class State

java.lang.Object
  extended by 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)

Constructor Summary
State(SrcRecord rec, Parameter par, Task task, Checkpoint[] ckps)
          Constructor for State
 
Method Summary
 Checkpoint getCheckpoint(int scheme)
          Getter for the checkpoint of the specified checkpointing scheme
 Parameter getParameter()
           
 SrcRecord getSourceRecord()
           
 Task getTask()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

State

public State(SrcRecord rec,
             Parameter par,
             Task task,
             Checkpoint[] ckps)
Constructor for State

Parameters:
rec - the source record
par - the parameter containing certain time values
task - the task that is being simulated
ckps - the data of the checkpointing schemes that are being simulated
Method Detail

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