public interface IClockService extends IService
Modifier and Type | Field and Description |
---|---|
static Class |
TYPE
The Class object representing the class corresponding to
the this interface.
|
EMPTY_SERVICES
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(IChangeListener listener)
Add a change listener.
|
boolean |
advanceEvent()
Advance one event.
|
TimerTask |
createRealtimeTimer(long time,
ITimedObject to)
Create a new realtime timer.
|
ITimer |
createTickTimer(ITimedObject to)
Create a new tick timer.
|
ITimer |
createTimer(long time,
ITimedObject to)
Create a new timer.
|
String |
getClockType()
Get the clock type.
|
long |
getDelta()
Get the clock delta.
|
double |
getDilation()
Get the clocks dilation.
|
ITimer |
getNextTimer()
Get the next timer.
|
long |
getStarttime()
Get the clocks start time.
|
String |
getState()
Get the clock state.
|
double |
getTick()
Get the current tick.
|
long |
getTime()
Get the current time.
|
ITimer[] |
getTimers()
Get all active timers.
|
void |
removeChangeListener(IChangeListener listener)
Remove a change listener.
|
void |
setClock(String type,
IThreadPool tp)
Set the clock.
|
void |
setDelta(long delta)
Set the clock delta.
|
void |
setDilation(double dilation)
Set the clocks dilation.
|
void |
start()
Start the clock.
|
void |
stop()
Stop the clock.
|
getPropertyMap, getServiceIdentifier, isValid
addNFProperty, getNFAllPropertyNames, getNFPropertyMetaInfo, getNFPropertyMetaInfos, getNFPropertyNames, getNFPropertyValue, getNFPropertyValue, removeNFProperty, shutdownNFPropertyProvider
addMethodNFProperty, getMethodNFAllPropertyNames, getMethodNFPropertyMetaInfo, getMethodNFPropertyMetaInfos, getMethodNFPropertyMetaInfos, getMethodNFPropertyNames, getMethodNFPropertyValue, getMethodNFPropertyValue, removeMethodNFProperty, shutdownNFPropertyProvider
static final Class TYPE
long getTime()
double getTick()
long getStarttime()
long getDelta()
String getState()
void setDelta(long delta)
delta
- The new clock delta.double getDilation()
void setDilation(double dilation)
dilation
- The clocks dilation.
// Hack. Remove? only for continuousvoid start()
void stop()
ITimer createTimer(long time, ITimedObject to)
System.currentTimeMillis()
.timespan
- The relative timespan after which the timed object should be notified.to
- The timed object.ITimer createTickTimer(ITimedObject to)
to
- The timed object.TimerTask createRealtimeTimer(long time, ITimedObject to)
timespan
- The relative timespan after which the timed object should be notified.to
- The timed object.ITimer getNextTimer()
ITimer[] getTimers()
void addChangeListener(IChangeListener listener)
listener
- The change listener.void removeChangeListener(IChangeListener listener)
listener
- The change listener.String getClockType()
boolean advanceEvent()
void setClock(String type, IThreadPool tp)
clock
- The new clock.Copyright © 2013. All Rights Reserved.