public interface Observer
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Field and Description |
---|---|
static int |
CHANGE
The object changed state.
|
static int |
DELETE
The object was destroyed.
|
static int |
NEW
New object was created.
|
Modifier and Type | Method and Description |
---|---|
boolean |
postMessage(String eventName,
int eventType,
Object[] args)
Compose a message containing the specified objects and send it to recipients.
|
static final int NEW
static final int CHANGE
static final int DELETE
boolean postMessage(String eventName, int eventType, Object[] args) throws Exception
eventName
- String; publicationeventType
- int; one of NEW, CHANGE, or DELETEargs
- Object[]; the objects to sendException
- when the event name is not a registered publicationCopyright © 2014–2016 Delft University of Technology. All rights reserved.