org.micropsi.comp.timer
Class TimerComponent
java.lang.Object
org.micropsi.comp.common.AbstractComponent
org.micropsi.comp.timer.TimerComponent
- All Implemented Interfaces:
- ActiveComponentIF, java.lang.Runnable
- public class TimerComponent
- extends AbstractComponent
- implements ActiveComponentIF
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
theThread
public java.lang.Thread theThread
TimerComponent
public TimerComponent()
performInitialisation
protected void performInitialisation()
throws MicropsiException
- Description copied from class:
AbstractComponent
- Does the implementation-dependent initialisation. When implementing
a component, you'll want to instatiate the RequesHandlers here and
register them with the ServerFacade.
- Specified by:
performInitialisation in class AbstractComponent
- Throws:
MicropsiException
start
public void start()
- Specified by:
start in interface ActiveComponentIF
run
public void run()
- Specified by:
run in interface ActiveComponentIF
tickNow
protected void tickNow()
registerSynchronizedComponent
protected boolean registerSynchronizedComponent(java.lang.String name)
unregisterSynchronizedComponent
protected void unregisterSynchronizedComponent(java.lang.String name)
receiveSyncReady
protected void receiveSyncReady(java.lang.String name)
getSimstep
public long getSimstep()
getSteplength
public int getSteplength()
isSyncmode
public boolean isSyncmode()
switchSyncmode
public void switchSyncmode()
getNonReadyComponents
public java.util.Vector getNonReadyComponents()
getReadyComponents
public java.util.Vector getReadyComponents()
getStarttime
public java.sql.Timestamp getStarttime()
- Returns the starttime.
- Returns:
- Timestamp
getInnerType
public int getInnerType()
- Specified by:
getInnerType in class AbstractComponent
setStepLength
public void setStepLength(int length)
shutdown
public void shutdown()
- Specified by:
shutdown in class AbstractComponent
.