getTimers(jdoa: JadeDynamicObjectArray; count: Integer output);
The getTimers method of the Process class populates a user-supplied JADE dynamic object with timer-related information from the receiving process that is the method receiver.
The value of the count parameter is updated with the number of active timers. The values are returned as properties in the dynamic object array specified by the jdoa parameter. For details about the properties returned in the dynamic object array, see "
The following example shows the use of the getTimers method and the resulting output.
vars count : Integer; jdoa : JadeDynamicObjectArray; jdo : JadeDynamicObject; str : String; int : Integer; begin create jdoa transient; process.getTimers(jdoa,count); foreach jdo in jdoa do str := '---' & jdo.getName & '(' & jdo.type.String & ')---'; foreach int in 1 to jdo.propertyCount do str := str & CrLf & jdo.getPropertyName(int) & " = " & jdo.getPropertyValueByIndex(int).String; endforeach; write str; endforeach; epilog jdoa.purge; delete jdoa; end; ---CurrentTimers(117)--- receiver = Q/18536.1 eventTag = 1 delay = 20000 option = 1 fired = false inCallBack = false exceptionState = false remainingTime = 11549 application = Test/18432.1 interfaceNumber = 0 serverExecution = false