| org.cougaar.core.service.DemoControlService
Inner Class :public interface Callback | |
Method Summary | |
void | advanceNodeTime(long period, double rate) | void | advanceSocietyTime(long period) | void | advanceSocietyTime(long period, boolean forceRunning) | void | advanceSocietyTime(long period, double rate) | void | advanceSocietyTime(ExecutionTimer.Change[] changes) | double | getExecutionRate() Get the local node's execution rate. | void | setLocalTime(long offset, double rate, long changeTime) Schedule a thread to set the local agent's time at
real-time changeTime to an execution-time of
changeTime + offset and rate. | void | setNodeTime(long time, double rate, long changeTime) Backwards-compatible variations of
DemoControlService.setLocalTime(long,double,long) . | void | setNodeTime(long time, double rate) | boolean | setSocietyTime(long offset, double rate, long changeTime, Set targets, Callback cb) Non-blocking method to set the node time at the specified nodes.
Parameters: offset - offset of real-time at the changeTime Parameters: rate - time rate multiplier (e.g. | boolean | setSocietyTime(long offset, double rate, long changeTime, Callback cb) Mostly non-blocking setSocietyTime to all nodes listed in the
naming service, but the naming service lookup could block or
return a partial list. | boolean | setSocietyTime(long offset, double rate, long changeTime, Set targets, long timeout) Blocking setSocietyTime variations with timeouts.
These are identical to the above Callback variations
with a simple Callback that blocks on an
"Object.wait(timeout)".
Callers should pass a timeout that's <= to the
changeTime, since usually you'd want to stop blocking
if a target was overly slow or unreachable.
Parameters: timeout - time to wait in milliseconds, or zeroto block forever -- usually changeTime makes sense. | boolean | setSocietyTime(long offset, double rate, long changeTime, long timeout) | boolean | setSocietyTime(long offset, double rate, long changeTime) A blocking setSocietyTime that uses the changeTime
as the timeout -- this is the basis for all the other
non-Callback/timeout setSocietyTime variations. | void | setSocietyTime(long time) Backwards-compatible blocking variations of
DemoControlService.setSocietyTime(long,double,long) . | void | setSocietyTime(long time, boolean forceRunning) | void | setSocietyTimeRate(double rate) |
advanceNodeTime | void advanceNodeTime(long period, double rate)(Code) | | |
advanceSocietyTime | void advanceSocietyTime(long period)(Code) | | |
advanceSocietyTime | void advanceSocietyTime(long period, boolean forceRunning)(Code) | | |
advanceSocietyTime | void advanceSocietyTime(long period, double rate)(Code) | | |
getExecutionRate | double getExecutionRate()(Code) | | Get the local node's execution rate.
|
setLocalTime | void setLocalTime(long offset, double rate, long changeTime)(Code) | | Schedule a thread to set the local agent's time at
real-time changeTime to an execution-time of
changeTime + offset and rate.
|
setNodeTime | void setNodeTime(long time, double rate)(Code) | | |
setSocietyTime | boolean setSocietyTime(long offset, double rate, long changeTime, Set targets, Callback cb)(Code) | | Non-blocking method to set the node time at the specified nodes.
Parameters: offset - offset of real-time at the changeTime Parameters: rate - time rate multiplier (e.g. 2 seconds per second) Parameters: changeTime - real-time when the change should take place,which should allow enough time for messaging. Parameters: cb - optional callback to monitor progress true if completed in this thread, which only happensif the targets list is empty or just the local node, otherwisethe callback is required to monitor the asynchronous progress. |
setSocietyTime | boolean setSocietyTime(long offset, double rate, long changeTime, Set targets, long timeout)(Code) | | Blocking setSocietyTime variations with timeouts.
These are identical to the above Callback variations
with a simple Callback that blocks on an
"Object.wait(timeout)".
Callers should pass a timeout that's <= to the
changeTime, since usually you'd want to stop blocking
if a target was overly slow or unreachable.
Parameters: timeout - time to wait in milliseconds, or zeroto block forever -- usually changeTime makes sense. true if all advances completed before the timeout,otherwise false. See Also: DemoControlService.setSocietyTime(long,double,long,Set,DemoControlService.Callback) |
setSocietyTime | void setSocietyTime(long time, boolean forceRunning)(Code) | | |
setSocietyTimeRate | void setSocietyTimeRate(double rate)(Code) | | |
|
|