Back to Clock Service Examples Page Back

Clock Example: Mission Clock

Description

This example will demonstrate the usage of a Mission clock. A reference to a Mission clock is obtained (via the "ControlledClock" ObjectId). You will need to ensure that the ControlledClock singleton is configured as a Mission clock - instructions are given below.

The example will then demonstrate how the clock can be set, paused and resumed.

Source File

The source file for the Mission Clock example is:

MissionClockQuery.java

How To Run This Example

  1. Before the ClockService is started, ensure that the ControlledClockSingleton is configured as a Mission clock.
  2. Start the Clock Service from the command line or by using the Administration Manager.

    From the command line use:

    server -start ClockService

    Using the Administration Manager:

    Start the Administration Manager, right click on the ClockService node and select Start from the pop-up menu.

  3. Start the client:
    run com.prismt.cos.CosClockService.examples.MissionClockQuery


PrismTech TOP
Top