org.micropsi.comp.timer
Class TimerComponent

java.lang.Object
  extended byorg.micropsi.comp.common.AbstractComponent
      extended byorg.micropsi.comp.timer.TimerComponent
All Implemented Interfaces:
ActiveComponentIF, java.lang.Runnable

public class TimerComponent
extends AbstractComponent
implements ActiveComponentIF


Field Summary
 java.lang.Thread theThread
           
 
Fields inherited from class org.micropsi.comp.common.AbstractComponent
clients, config, consoleService, exproc, logger, prefixKey, runner, servers
 
Constructor Summary
TimerComponent()
           
 
Method Summary
 int getInnerType()
           
 java.util.Vector getNonReadyComponents()
           
 java.util.Vector getReadyComponents()
           
 long getSimstep()
           
 java.sql.Timestamp getStarttime()
          Returns the starttime.
 int getSteplength()
           
 boolean isSyncmode()
           
protected  void performInitialisation()
          Does the implementation-dependent initialisation.
protected  void receiveSyncReady(java.lang.String name)
           
protected  boolean registerSynchronizedComponent(java.lang.String name)
           
 void run()
           
 void setStepLength(int length)
           
 void shutdown()
           
 void start()
           
 void switchSyncmode()
           
protected  void tickNow()
           
protected  void unregisterSynchronizedComponent(java.lang.String name)
           
 
Methods inherited from class org.micropsi.comp.common.AbstractComponent
getComponentDescriptor, getComponentID, getComponentRunner, getConsoleService, getExproc, getLogger, getRealLogger, initialize, overrideComponentID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theThread

public java.lang.Thread theThread
Constructor Detail

TimerComponent

public TimerComponent()
Method Detail

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

(c) by Micropsi Project: http://www.cognitive-agents.org

.