public final class TimeDispatcher extends ActiveEventDispatcher<TimeDispatcher,Timable>
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 |
|---|---|
void |
deregister(Timable target)
Deregisters a
Timable from this dispatcher. |
void |
destroy()
Releases all resources thereby making the dispatcher unusable.
|
void |
register(Timable target)
Registers a
Timable with this dispatcher. |
static void |
setDefaultDispatcher(TimeDispatcher dispatcher)
Sets the system default time dispatcher.
|
getRealtimeThreadGroup, getScheduler, getSchedulingParameters, 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 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 void register(Timable target) throws RegistrationException, StaticIllegalStateException, StaticIllegalArgumentException
Timable with this dispatcher.register in class ActiveEventDispatcher<TimeDispatcher,Timable>target - To be registeredRegistrationException - when target is already
registered.StaticIllegalStateException - when this object has been destroyed.StaticIllegalArgumentException - when target is not stopped.java.lang.UnsupportedOperationException - every time, since this is not implemented yet.public void deregister(Timable target) throws DeregistrationException, StaticIllegalStateException, StaticIllegalArgumentException
Timable from this dispatcher.deregister in class ActiveEventDispatcher<TimeDispatcher,Timable>target - to be deregisteredDeregistrationException - when target is not already
registered.StaticIllegalStateException - when this object has been destroyed.StaticIllegalArgumentException - when target is not stopped.java.lang.UnsupportedOperationException - every time, since this is not implemented yet.public void destroy()
throws StaticIllegalStateException
destroy in class ActiveEventDispatcher<TimeDispatcher,Timable>StaticIllegalStateException - when called on a dispatcher that has
one or more registered Timable objects.aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2021 aicas GmbH. All Rights Reserved.