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>