io.sarl.sre.janus.services.time
Class JreTimeService
All Superinterfaces:
TimeService, org.arakhne.afc.services.IService
@javax.inject.Singleton
class JreTimeService
extends AbstractTimeService
Time service based on the JRE standard time.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Since:
0.6.0
Property Summary
Modifier and type Property and description
long oSCurrentTime
double oSTimeFactor
java.util.concurrent.TimeUnit timePrecision
Inherited: referenceType
Constructor Summary
Constructor and description
new(SmartListenerCollection<T>)
Constructor.
Action Summary
Modifier and type Action and description
boolean evolveTimeIfPossible([double])
long getOSCurrentTime
double getOSTimeFactor
double getTime(TimeUnit)
java.util.concurrent.TimeUnit getTimePrecision
boolean setTimeIfPossible(double)
Property Details
oSCurrentTime
val oSCurrentTime : long

This property is an alias for the action: getOSCurrentTime

oSTimeFactor
val oSTimeFactor : double

This property is an alias for the action: getOSTimeFactor

timePrecision
val timePrecision : java.util.concurrent.TimeUnit

This property is an alias for the action: getTimePrecision

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
evolveTimeIfPossible([double])
def evolveTimeIfPossible([double]) : boolean
getOSCurrentTime
def getOSCurrentTime : long
getOSTimeFactor
def getOSTimeFactor : double
getTime(TimeUnit)
def getTime(TimeUnit) : double
getTimePrecision
def getTimePrecision : java.util.concurrent.TimeUnit
setTimeIfPossible(double)
def setTimeIfPossible(double) : boolean