| java.lang.Object org.cougaar.mlm.debug.ui.UIDisplay
UIDisplay | public class UIDisplay implements ActionListener,Runnable(Code) | | The sample User Interface Plugin display.
This is created and run from the UIPlugin.start method. It's run
in a separate thread so that the UIPlugin.start method
can return immediately while this new thread creates
the user display and awaits user actions.
The display contains buttons for displaying the log plan,
expandable tasks, allocatable workflows, assets and asset schedules.
A new thread is created for each display; it:
obtains the requested information;
creates a window and displays the requested information;
listens for changes in the cluster (for local cluster only);
listens for user changes (currently only closing the window).
This assumes that there is only one plan ("Reality").
In the future, this should allow the user to:
select a plan and see the clusters associated with that plan (at
the local cluster)
|
Constructor Summary | |
public | UIDisplay(UIPlugin uiPlugin, PluginDelegate del) Called from UIPlugin; records the plugin this is part of for use by
objects it creates. |
ALL_ASSETS_COMMAND | public static String ALL_ASSETS_COMMAND(Code) | | |
ASSET_SCHEDULE_COMMAND | public static String ASSET_SCHEDULE_COMMAND(Code) | | |
ASSIGN_ASSETS_COMMAND | public static String ASSIGN_ASSETS_COMMAND(Code) | | |
CLUSTER_ASSETS_COMMAND | public static String CLUSTER_ASSETS_COMMAND(Code) | | |
CREATE_TASK_COMMAND | public static String CREATE_TASK_COMMAND(Code) | | |
OUTPUT_FILE_COMMAND | public static String OUTPUT_FILE_COMMAND(Code) | | |
PLAN_DETAILS_COMMAND | public static String PLAN_DETAILS_COMMAND(Code) | | |
PROVIDE_LOG_SUPPORT_COMMAND | public static String PROVIDE_LOG_SUPPORT_COMMAND(Code) | | |
SINGLE_ASSET_SCHEDULE_COMMAND | public static String SINGLE_ASSET_SCHEDULE_COMMAND(Code) | | |
WORKFLOWS_COMMAND | public static String WORKFLOWS_COMMAND(Code) | | |
UIDisplay | public UIDisplay(UIPlugin uiPlugin, PluginDelegate del)(Code) | | Called from UIPlugin; records the plugin this is part of for use by
objects it creates.
Parameters: uiPlugin - this user interface plugin |
actionPerformed | public void actionPerformed(ActionEvent e)(Code) | | Handle user selection.
Create a new thread which creates a new window, displays the
information requested, and listens for changes (from local cluster only).
Each display is handled by a separate thread, so while one
display is waiting to collect information from the clusters,
the user can request another set of information.
This creates a tree display for log plans, tasks and workflows,
and a bar graph display for assets and asset schedules.
Parameters: e - the event generated by the user |
run | public void run()(Code) | | Obtain the information requested and display it.
Information is obtained in the run method, so that the main user
interface thread is not hung waiting to obtain information from
(potentially remote) clusters.
If the user closes this window (the main display), then the plugin exits.
In the future, this should query the user for the plan; for now,
it simply gets the first plan (should be "Reality")
and exits if it doesn't exist.
Although the plan is passed to the createRow method and used
to display potentially different lists of cluster ids, the actionperformed
method simply gets the plan from the global plan variable; eventually
it will get it from the user's input.
|
|
|