001: /*
002: * <copyright>
003: *
004: * Copyright 1997-2004 BBNT Solutions, LLC
005: * under sponsorship of the Defense Advanced Research Projects
006: * Agency (DARPA).
007: *
008: * You can redistribute this software and/or modify it under the
009: * terms of the Cougaar Open Source License as published on the
010: * Cougaar Open Source Website (www.cougaar.org).
011: *
012: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
013: * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
014: * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
015: * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
016: * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
017: * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
018: * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
019: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
020: * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
021: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
022: * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
023: *
024: * </copyright>
025: */
026:
027: /**
028: * All the static info for the XML user interface is here,
029: * so it can be easily configured.
030: */package org.cougaar.mlm.ui.planviewer;
031:
032: public class XMLClientConfiguration {
033:
034: public static final String debuggerTitle = "COUGAAR Debugger";
035:
036: public static final String uiDataProviderTitle = "COUGAAR UI Data Provider";
037:
038: public static final String[] planObjectNames = { "PlanElement",
039: "Task", "Asset", "Policy", "Aggregation", "Allocation",
040: "Disposition", "AssetTransfer", "Expansion", "all" };
041:
042: public static final String[] UIPlanElementNames = { "" };
043:
044: public static final String[] planElementNames = { "UID.UID" };
045:
046: public static final String[] UIAggregationNames = { "" };
047:
048: public static final String[] aggregationNames = { "" };
049:
050: public static final String[] UIAllocationNames = {
051: "UIAsset.itemIdentification",
052: "UIAsset.itemIdentificationPropertyNomenclature",
053: "UIAsset.typeIdentification",
054: "UIAsset.typeIdentificationPropertyNomenclature",
055: "planName", "UITask.UUID", "UUID" };
056:
057: public static final String[] failedAllocationNames = { "" };
058:
059: public static final String[] UIFailedDispositionNames = { "" };
060:
061: public static final String[] allocationNames = {
062: "asset.ItemIdentificationPG.item_identification",
063: "asset.ItemIdentificationPG.nomenclature",
064: "asset.TypeIdentificationPG.nomenclature",
065: "asset.TypeIdentificationPG.type_identification",
066: "plan.planName", "task.ID", "UID.UID" };
067:
068: public static final String[] UIAssetTransferNames = {
069: "UIAsset.itemIdentification",
070: "UIAsset.itemIdentificationPropertyNomenclature",
071: "UIAsset.typeIdentification",
072: "UIAsset.typeIdentificationPropertyNomenclature",
073: "UIAsset.itemIdentification",
074: "UIAsset.itemIdentificationPropertyNomenclature",
075: "UIAsset.typeIdentification",
076: "UIAsset.typeIdentificationPropertyNomenclature",
077: "assignor", "planName", "UIScheduleElement.endDate",
078: "UIScheduleElement.startDate", "UUID" };
079:
080: public static final String[] assetTransferNames = {
081: "asset.ItemIdentificationPG.item_identification",
082: "asset.ItemIdentificationPG.nomenclature",
083: "asset.TypeIdentificationPG.nomenclature",
084: "asset.TypeIdentificationPG.type_identification",
085: "assignee.ItemIdentificationPG.item_identification",
086: "assignee.ItemIdentificationPG.nomenclature",
087: "assignee.TypeIdentificationPG.nomenclature",
088: "assignee.TypeIdentificationPG.type_identification",
089: "assignor.address", "plan.planName",
090: "schedule.endDate.date", "schedule.endDate.month",
091: "schedule.endDate.year", "schedule.startDate.date",
092: "schedule.startDate.month", "schedule.startDate.year",
093: "UID.UID" };
094:
095: public static final String[] UIExpansionNames = { "planName",
096: "UITask.UUID", "UUID" };
097:
098: public static final String[] expansionNames = { "plan.planName",
099: "task.ID", "UID.UID" };
100:
101: public static final String[] UITaskNames = { "destination",
102: "directObject.itemIdentification",
103: "directObject.itemIdentificationPropertyNomenclature",
104: "directObject.typeIdentification",
105: "directObject.typeIdentificationPropertyNomenclature",
106: "UUID", "parentTaskUUID", "planName",
107: "prepositionalPhrase.preposition", "source", "verb",
108: "workflowUUID" };
109:
110: public static final String[] taskNames = {
111: "destination.address",
112: "directObject.ItemIdentificationPG.item_identification",
113: "directObject.ItemIdentificationPG.nomenclature",
114: "directObject.TypeIdentificationPG.nomenclature",
115: "directObject.TypeIdentificationPG.type_identification",
116: "ID",
117: "parentTask",
118: "plan.planName",
119: "prepositionalPhrases.preposition",
120: "prepositionalPhrases.indirectObject.clusterIdentifier.address",
121: "source.address", "verb" };
122:
123: public static final String[] UIAssetNames = { "allocationID",
124: "itemIdentification",
125: "itemIdentificationPropertyNomenclature",
126: "typeIdentificationPropertyNomenclature",
127: "typeIdentification", "UUID" };
128:
129: public static final String[] assetNames = {
130: "ItemIdentificationPG.item_identification",
131: "ItemIdentificationPG.nomenclature",
132: "TypeIdentificationPG.nomenclature",
133: "TypeIdentificationPG.type_identification", "UID.UID" };
134:
135: public static final String[] UIPolicyNames = { "policyName",
136: "policyParameter.name", "policyParameter.value", "UUID" };
137:
138: public static final String[] policyNames = { "name", "UID.UID" };
139:
140: public static final String[] allNames = { "" };
141:
142: public static final String[][] planObjectFieldNames = {
143: planElementNames, taskNames, assetNames, policyNames,
144: aggregationNames, allocationNames, failedAllocationNames,
145: assetTransferNames, expansionNames, allNames };
146:
147: public static final String[][] UIPlanObjectFieldNames = {
148: UIPlanElementNames, UITaskNames, UIAssetNames,
149: UIPolicyNames, UIAggregationNames, UIAllocationNames,
150: UIFailedDispositionNames, UIAssetTransferNames,
151: UIExpansionNames, allNames };
152:
153: // the package and id are used in the URL specified by the client
154: // to connect to the PSP
155:
156: public static final String PSP_package = "alpine/demo";
157:
158: public static final String DebugPSP_id = "DEBUG.PSP";
159:
160: public static final String UIDataPSP_id = "UIDATA.PSP";
161: }
|