public interface ActiveEvent
This is the interface for defining the active event system. Classes
implementing ActiveEvent
are used to connect events
that take place outside the Java runtime to RTSJ activities.
An active event is known by an ID and by a name. Only the name is provided by the application. The system provides the ID. Both must be unique.
When an event takes place outside the Java runtime, some event-specific
code in the Java runtime executes. That code notifies the
ActiveEvent
infrastructure of this event by calling a
trigger
method in the event.
Modifier and Type | Method and Description |
---|---|
boolean |
isActive()
Determine the activation state of this event, i.e., it has been started
but not yet stopped again.
|
boolean |
isRunning()
Determine the running state of this event, i.e., it is both active and
enabled.
|
void |
start()
Start this active event.
|
void |
start(boolean disabled)
Start this active event.
|
boolean |
stop()
Stop this active event.
|
boolean isActive()
true
when active, false
otherwise.boolean isRunning()
true
when active and enabled, false
otherwise.void start() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- when this event
has already been started.void start(boolean disabled) throws java.lang.IllegalStateException
disabled
- true for starting in a disabled state.java.lang.IllegalStateException
- when this event
has already been started.boolean stop() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- when this event
is not running.aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2017 aicas GmbH. All Rights Reserved.