public class Snapshot
extends java.lang.Object
Constructor and Description |
---|
Snapshot(int day) |
Modifier and Type | Method and Description |
---|---|
void |
addCheckpoint(Checkpoint checkpoint) |
void |
clear()
Resets a snapshot, clearing the state information it contains.
|
Checkpoint[] |
getCheckpoints() |
java.util.Date |
getCreationTime() |
int |
getDay() |
byte[] |
getGlobalState() |
WorkerList |
getWorkerList() |
boolean |
isComplete()
A Snapshot is only complete when it has information from every active
Worker.
|
void |
setGlobalState(byte[] globalState) |
void |
setWorkerList(WorkerList list) |
public void setWorkerList(WorkerList list)
public void setGlobalState(byte[] globalState)
public void addCheckpoint(Checkpoint checkpoint)
public boolean isComplete()
public void clear()
public int getDay()
public java.util.Date getCreationTime()
public WorkerList getWorkerList()
public byte[] getGlobalState()
public Checkpoint[] getCheckpoints()