io.sarl.sre.janus.services.time
Class AbstractTimeService
All Superinterfaces:
TimeService, org.arakhne.afc.services.IService
All Known Subclasses:
JreTimeService
abstract class AbstractTimeService
extends java.lang.Object
implements TimeService
Time service based on the JRE standard time.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Since:
0.10
Property Summary
Modifier and type Property and description
long oSCurrentTime
java.lang.Class<T> referenceType
Constructor Summary
Constructor and description
new(SmartListenerCollection<T>)
Constructor.
Action Summary
Modifier and type Action and description
void addTimeListener(TimeListener)
protected void fireTimeChanged
Notifies about time changes.
double fromOSDuration(double)
double fromOSTime(double)
long getOSCurrentTime
java.lang.Class<T> getReferenceType
void removeTimeListener(TimeListener)
double toOSDuration(double)
double toOSTime(double)
Property Details
oSCurrentTime
val oSCurrentTime : long

This property is an alias for the action: getOSCurrentTime

referenceType
val referenceType : java.lang.Class<T>

This property is an alias for the action: getReferenceType

Constructor Details
new(SmartListenerCollection<T>)
new(SmartListenerCollection<T>)
Constructor.
Parameters:
listeners - the empty collection of listeners that must be used by this service.
Action Details
addTimeListener(TimeListener)
def addTimeListener(TimeListener)
fireTimeChanged
protected def fireTimeChanged
Notifies about time changes.
fromOSDuration(double)
def fromOSDuration(double) : double
fromOSTime(double)
def fromOSTime(double) : double
getOSCurrentTime
def getOSCurrentTime : long
getReferenceType
def getReferenceType : java.lang.Class<T>
removeTimeListener(TimeListener)
def removeTimeListener(TimeListener)
toOSDuration(double)
def toOSDuration(double) : double
toOSTime(double)
def toOSTime(double) : double