Clock | myPhysicsLab Docs
Hierarchy (view full)
- AbstractSubject
- Clock
Implements
Index
Constructors
constructor
- new
Clock (opt_name?, opt_sysClock?): Clock Parameters
Optionalopt_name: stringOptionalopt_sysClock: SystemClock
Returns Clock
Properties
Private clockStart_sys_secs_
clock
Private isRunning_
is
Private realStart_sys_secs_
real
Private saveRealTime_secs_
save
Private saveTime_secs_
save
Private stepMode_
step
Private tasks_
Private timeRate_
time
Static Readonly CLOCK_PAUSE
CLOCK_
Static Readonly CLOCK_RESUME
CLOCK_
Static Readonly CLOCK_SET_TIME
CLOCK_
Static Readonly CLOCK_STEP
CLOCK_
Methods
addObserver
addParameter
addTask
broadcast
broadcastParameter
clearStepMode
clockToSystem
Private executeTasks
Protected getBroadcast
getClassName
getName
getObservers
getParameter
getParameterBoolean
- get
Parameter (name): ParameterBooleanBoolean Parameters
name: string
Returns ParameterBoolean
the ParameterBoolean with the given name
getParameterNumber
- get
Parameter (name): ParameterNumberNumber Parameters
name: string
Returns ParameterNumber
the ParameterNumber with the given name
getParameterString
- get
Parameter (name): ParameterStringString Parameters
name: string
Returns ParameterString
the ParameterString with the given name