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

timer component

Created by rvuine. Last edited by rvuine, 5 years and 152 days ago. Viewed 207 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>
Please login to post a comment.

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

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



< September 2010 >
SunMonTueWedThuFriSat
1234
567891011
12131415161718
19202122232425
2627282930

>>SnipSnap 1.0b1-uttoxeter

www.cognitive-agents.org