public final class TimeDispatcher extends ActiveEventDispatcher<TimeDispatcher,Timer>
Timer and RealtimeThread.sleep(javax.realtime.Clock, javax.realtime.HighResolutionTime<?>).| Constructor and Description |
|---|
TimeDispatcher(SchedulingParameters schedule)
Creates a new dispatcher, whose dispatching thread runs with the given
scheduling parameters.
|
TimeDispatcher(SchedulingParameters schedule,
RealtimeThreadGroup group)
Creates a new dispatcher, whose dispatching thread runs with the given
scheduling parameters.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(Timer target)
Activate an active event registered with this
dispatcher.
|
protected void |
deactivate(Timer target)
Deactivate an active event registered with this dispatcher.
|
protected void |
deregister(Timer target)
Deregisters an active event from this dispatcher, breaking its
association with this dispatcher.
|
void |
destroy()
Makes the dispatcher unusable.
|
static TimeDispatcher |
getDefaultDispatcher() |
boolean |
isRegistered(Timer target)
Test wether or not a given event is registered with this
dispatcher.
|
protected void |
register(Timer target)
Registers an active event with this dispatcher.
|
static void |
setDefaultDispatcher(TimeDispatcher dispatcher)
Sets the system default time dispatcher.
|
getRealtimeThreadGroup, getScheduler, getSchedulingParameters, getThread, setScheduler, setScheduler, setSchedulingParameterspublic TimeDispatcher(SchedulingParameters schedule, RealtimeThreadGroup group) throws StaticIllegalStateException
schedule - It gives the parameters for scheduling this dispatcherStaticIllegalStateException - when the intersection of affinity
in schedule and the affinity of group does not
correspond to a valid affinity.java.lang.UnsupportedOperationException - every time, since this is
not implemented yet.public TimeDispatcher(SchedulingParameters schedule) throws StaticIllegalStateException
schedule - It gives the parameters for scheduling this dispatcherStaticIllegalStateException - when the intersection of affinity
in schedule and the affinity of the current rhread groupo
does not correspond to a valid affinity.java.lang.UnsupportedOperationException - every time, since this is
not implemented yet.public static TimeDispatcher getDefaultDispatcher()
public static void setDefaultDispatcher(TimeDispatcher dispatcher)
dispatcher - To be used when no dispatcher is provided. When
null, the default time dispatcher is set to the
original system default.java.lang.UnsupportedOperationException - every time, since this is
not implemented yet.public boolean isRegistered(Timer target)
isRegistered in class ActiveEventDispatcher<TimeDispatcher,Timer>target - The event to testtrue when event is registered with this
dispatcher.protected void register(Timer target) throws RegistrationException, StaticIllegalStateException
register in class ActiveEventDispatcher<TimeDispatcher,Timer>target - The event to registerRegistrationException - when event is already
registered.StaticIllegalStateException - when this object has been destroyed.protected void activate(Timer target) throws StaticIllegalStateException
activate in class ActiveEventDispatcher<TimeDispatcher,Timer>target - The event to registerStaticIllegalStateException - when event is
stopped.protected void deregister(Timer target) throws DeregistrationException, StaticIllegalStateException
deregister in class ActiveEventDispatcher<TimeDispatcher,Timer>target - The event to deregisterStaticIllegalStateException - when this object has been
destroyedDeregistrationExceptionprotected void deactivate(Timer target) throws StaticIllegalStateException
deactivate in class ActiveEventDispatcher<TimeDispatcher,Timer>target - The event to deregisterStaticIllegalStateException - when this object has been destroyed.public void destroy()
throws StaticIllegalStateException
destroy in class ActiveEventDispatcher<TimeDispatcher,Timer>StaticIllegalStateException - when called on a dispatcher that has
one or more registered objects.aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2024 aicas GmbH. All Rights Reserved.