The MicroPsi Web Documentation System
[ start | index | login ]
start > timer component

timer component

Created by rvuine. Last edited by rvuine, 5 years and 110 days ago. Viewed 199 times. #7
[diff] [history] [edit] [rdf]
labels
attachments

The timer component

The timer component controls the simulation speed by sending a "tick" signal to the server regularily.

The timer component defines a channelserver (timeragentserver), which is currently not used, and a channelclient (timerserverclient) used to connect to the server.

The custom configuration tags for server components are steplength, autostart and syncmode.

Steplength defines the simulation speed in microseconds. You can change this, just make sure not to make the step length too small (you should not make a step shorter than the time needed for the system to calculate it.)

Please leave autostart at "true" and syncmode at "false".

So, a timer definition typically looks like this:

<component id="timer">
  <class>
    org.micropsi.comp.timer.TimerComponent
  </class>
  <data>
    <steplength> 100 </steplength>
    <autostart> true </autostart>
    <syncmode> false </syncmode>
    <servers>
      <server id="s1">
        <type> 0 </type>
        <name> timeragentserver </name>
      </server>
    </servers>
    <clients>
      <client id="c1">
        <type> 0 </type>
        <name> timerserverclient </name>
        <connect-to> servertimerserver </connect-to>
        <usethreadpool> false </usethreadpool>
      </client>
    </clients>	
  </data>
</component>
no comments | post comment

Quicklinks
fields of activity
downloads
installation
getting started
extension (new!)
faq
>>Bugzilla
snipsnap-help

Logged in Users: (0)
… and a Guest.



< July 2010 >
SunMonTueWedThuFriSat
123
45678910
11121314151617
18192021222324
25262728293031

>>SnipSnap 1.0b1-uttoxeter

www.cognitive-agents.org