| java.lang.Object org.cougaar.mlm.debug.ui.UISchedule
Constructor Summary | |
public | UISchedule(UIPlugin uiPlugin, String planName, MessageAddress clusterId, String assetName, Object listener) Create the information for a bar graph of scheduled assets,
which are assets allocated by the specified cluster for the
specified plan. |
singleAsset | boolean singleAsset(Code) | | |
UISchedule | public UISchedule(UIPlugin uiPlugin, String planName, MessageAddress clusterId, String assetName, Object listener) throws UINoPlanException(Code) | | Create the information for a bar graph of scheduled assets,
which are assets allocated by the specified cluster for the
specified plan.
The display consists of a set of vertical bars for each asset;
the y-axis represents quantity of the asset, the x-axis represents time.
Parameters: uiPlugin - this user interface plugin Parameters: planName - the name of the plan for which to display scheduled assets Parameters: clusterId - the cluster for which to display scheduled assets Parameters: assetName - name of asset, null to graph all assets exception: UINoPlanException - thrown when the plan does not exist |
getContiguous | public boolean getContiguous()(Code) | | Whether or not to make the bars in the bar graph contiguous.
for single assets, return true; for multiple assets, return false |
getLegend | public String[] getLegend()(Code) | | Names of assets.
names of assets |
getNumberOfXIntervals | public int getNumberOfXIntervals()(Code) | | Number of intervals (years, days, or hours) in the schedule.
number of years, days or hours in the schedule |
getNumberOfYIntervals | public int getNumberOfYIntervals()(Code) | | Maximum number of assets assigned in any one time interval.
maximum number of assets assigned in a time interval |
getValues | public int[][] getValues()(Code) | | The quantity of each asset scheduled for each time interval.
for each asset, the quantity scheduled for each time interval |
getXLabels | public String[] getXLabels()(Code) | | Years, days or hours.
numeric labels for years, days or hours |
getXLegend | public String getXLegend()(Code) | | (Years, days or hours) starting at (start date)
"Years" "Days" or "Hours" "starting at" (start date) |
getYLabels | public String[] getYLabels()(Code) | | Quantities of assets.
numeric labels for quantities of assets |
getYLegend | public String getYLegend()(Code) | | "Assets"
"Assets" |
registerListener | public void registerListener(ActionListener listener)(Code) | | Listen for changes in the assets scheduled by the cluster.
Parameters: listener - object to notify when scheduled assets change |
startSubscription | public void startSubscription()(Code) | | Can't start subscription in constructor, because you could
get a subscriptionChanged before the UIBarGraphDisplay is ready.
|
update | public void update()(Code) | | Called to force an update of the asset schedules.
|
|
|