class ChangeEvent extends ModelEvent
ModelEvent.DeleteEvent, ModelEvent.ModelChangeEvent, ModelEvent.ModelCommand| Modifier and Type | Field and Description |
|---|---|
(package private) String |
federation
The IMB federation.
|
(package private) ModelState |
state
The state.
|
(package private) int |
uid
UID.
|
| Constructor and Description |
|---|
ChangeEvent(int uid,
ModelState state,
String federation)
Construct a new ChangeEvent from uid, state and federation parameters.
|
ChangeEvent(TByteBuffer payload)
Construct a new ChangeEvent from data received over IMB.
|
| Modifier and Type | Method and Description |
|---|---|
void |
prepare(TByteBuffer payload)
Prepare this ModelEvent for transmission over IMB.
|
void |
qWrite(TByteBuffer payload)
Transmit this ModelEvent over IMB.
|
final int uid
final ModelState state
final String federation
public ChangeEvent(TByteBuffer payload)
payload - TByteBuffer; the received IMB datapublic ChangeEvent(int uid,
ModelState state,
String federation)
uid - int; the uid of the new ChangeEventstate - int; the state of the new ChangeEventfederation - String; the federation of the new ChangeEventpublic void prepare(TByteBuffer payload)
prepare in interface SelfWrapperprepare in class ModelEventpayload - TByteBuffer; the transmit bufferpublic void qWrite(TByteBuffer payload)
qWrite in interface SelfWrapperqWrite in class ModelEventpayload - TByteBuffer; the transmit bufferCopyright © 2014–2016 Delft University of Technology. All rights reserved.