public class SKUpdate extends AbstractMessage implements Control
Constructor and Description |
---|
SKUpdate(java.io.InputStream in)
An SKUpdate message that populates its data from a stream.
|
SKUpdate(int id,
int time,
ChangeSet changes)
SKUpdate message with a specific ID and data component.
|
Modifier and Type | Method and Description |
---|---|
ChangeSet |
getChangeSet()
Get the list of changes.
|
int |
getSimulatorID()
Get the ID of the simulator that is acknowledging the connection.
|
int |
getTime()
Get the timestep this update is for.
|
addMessageComponent, getComponents, getURN, read, toString, write
public SKUpdate(java.io.InputStream in) throws java.io.IOException
in
- The InputStream to read.java.io.IOException
- If there is a problem reading the stream.public SKUpdate(int id, int time, ChangeSet changes)
id
- The id of the simulator sending the update.time
- The timestep this update refers to.changes
- The changeset.public int getSimulatorID()
public ChangeSet getChangeSet()
public int getTime()