001: /*
002: * <copyright>
003: *
004: * Copyright 2000-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: package org.cougaar.tools.csmart.ui.monitor;
028:
029: /**
030: * Names and values passed from Servlets to clients.
031: * Property names must not have spaces as they are used
032: * as attribute names in grappa nodes.
033: */
034: public class PropertyNames {
035: // names for common properties
036: public static final String OBJECT_TYPE = "Object_Type";
037: public static final String TABLE_TITLE = "title";
038: public static final String UID_ATTR = "UID";
039: public static final String AGENT_ATTR = "Agent_Name";
040: // common in all plan objects
041: public static final String PLAN_OBJECT_AGENT_NAME = AGENT_ATTR;
042: public static final String PLAN_OBJECT_COMMUNITY_NAME = "Community_Name";
043: // values of OBJECT_TYPE from Event Environment
044: public static final String EVENT_OBJECT = "Event";
045: public static final String AGENT_OBJECT = "Agent";
046: // values of OBJECT_TYPE from Plan Object Environment
047: public static final String ASSET_OBJECT = "Asset";
048: public static final String ORGANIZATION_OBJECT = "Organization";
049: public static final String PLAN_ELEMENT_OBJECT = "Plan_Element";
050: public static final String TASK_OBJECT = "Task";
051: public static final String WORKFLOW_OBJECT = "Workflow";
052: // names for Event properties
053: public static final String EVENT_ASSET_LABEL = "Asset";
054: public static final String EVENT_ASSET_TYPE = "Asset_Type";
055: public static final String EVENT_ASSET_UID = "Asset_Id";
056: public static final String EVENT_BODY_CLASS = "Body_Class";
057: public static final String EVENT_CAUSES = "Causes";
058: public static final String EVENT_CUMULATIVE = "Cumulative";
059: public static final String EVENT_CYBER_ATTACK_TYPE = "Cyber_Attack_Type";
060: public static final String EVENT_DEADLINE = "Deadline";
061: public static final String EVENT_DELTA = "Delta";
062: public static final String EVENT_DESCRIPTION = "Description";
063: public static final String EVENT_DESTINATION = "Destination";
064: public static final String EVENT_DURATION = "Duration";
065: public static final String EVENT_FROM_TIME = "From_Time";
066: public static final String EVENT_GENERATION_TIME = "Generation_Time";
067: public static final String EVENT_INFRASTRUCTURE_TYPE = "Infrastructure_Event_Type";
068: public static final String EVENT_INTENSITY = "Intensity";
069: public static final String EVENT_LABEL = "Label";
070: public static final String EVENT_LATITUDE = "Latitude";
071: public static final String EVENT_LONGITUDE = "Longitude";
072: public static final String EVENT_MANAGER_NAME = "Manager_Name";
073: public static final String EVENT_ORIGINAL_VISIBILITY_TIME = "Undelayed_Visibility_Time";
074: public static final String EVENT_PARENTS = "Parents";
075: public static final String EVENT_PREVIOUS_ALLOCATION_RESULT = "Previous_Allocation_Result";
076: public static final String EVENT_PUBLISHER = "Publisher";
077: public static final String EVENT_RATING = "Rating";
078: public static final String EVENT_RATING_DESCRIPTION = "Rating_Description";
079: public static final String EVENT_REAL_GENERATION_TIME = "Real_Generation_Time";
080: public static final String EVENT_REGARDING = "Regarding";
081: public static final String EVENT_RESPONSE_TO = "Response_To";
082: public static final String EVENT_SOURCE = "Source";
083: public static final String EVENT_TARGET = "Target";
084: public static final String EVENT_TASK_NAME = "Task";
085: public static final String EVENT_TIME_COMPLETED = "Time_Completed";
086: public static final String EVENT_TRANSMISSION_DELAY = "Transmission_Delay";
087: public static final String EVENT_TYPE = "Event_Type";
088: public static final String EVENT_UID = "UID";
089: public static final String EVENT_UNTIL_TIME = "Until_Time";
090: public static final String EVENT_VISIBILITY_TIME = "Visibility_Time";
091: // values of EVENT_TYPE
092: public static final String EVENT_ALLOCATION = "Allocation Event";
093: public static final String EVENT_ASSET = "Asset Event";
094: public static final String EVENT_COMMUNITY_NAME = "Community_Name";
095: public static final String EVENT_CYBER_ATTACK = "Cyber Attack Event";
096: public static final String EVENT_DEADLINE_EXCEEDED = "Deadline Exceeded Event";
097: public static final String EVENT_HAPPINESS_CHANGE = "Happiness Change Event";
098: public static final String EVENT_INFRASTRUCTURE = "Infrastructure Event";
099: public static final String EVENT_INTERNAL_VISIBILITY_TIME = "Internal_Visibility_Time";
100: public static final String EVENT_KINETIC = "Kinetic Event";
101: public static final String EVENT_REMOTE_RESPONSE = "Remote Response Event";
102: public static final String EVENT_REMOTE_TASK = "Remote Task Event";
103: public static final String EVENT_RESPONSE = "Response Event";
104: public static final String EVENT_SNIFFER = "Sniffer Event";
105: public static final String EVENT_TASK = "Task Event";
106: public static final String EVENT_TIMER = "Timer Event";
107: public static final String EVENT_WRAPPED = "Wrapped Event";
108: // values of ASSET_TYPE
109: public static final String EVENT_ASSET_LOCAL = "Local";
110: public static final String EVENT_ASSET_REMOTE = "Remote";
111: // names for Agent properties
112: public static final String AGENT_SELF = "Self";
113: public static final String AGENT_LABEL = "Label";
114: public static final String AGENT_NAME = AGENT_ATTR;
115: public static final String AGENT_SOURCE = "Source";
116: public static final String AGENT_URL = "URL";
117: public static final String AGENT_COMMUNITY_NAME = "Community_Name";
118: public static final String AGENT_LATITUDE = "Latitude";
119: public static final String AGENT_LONGITUDE = "Longitude";
120: public static final String AGENT_TYPE = "Type";
121: public static final String AGENT_ROLES = "Roles";
122:
123: // FROM TASK ENVIRONMENT
124: // names for Plan Element properties
125: public static final String PLAN_ELEMENT_ESTIMATED_RESULT = "Estimated_Result";
126: public static final String PLAN_ELEMENT_REPORTED_RESULT = "Reported_Result";
127: public static final String PLAN_ELEMENT_OBSERVED_RESULT = "Observed_Result";
128: public static final String PLAN_ELEMENT_TASK_UID = "Plan_Element_Task_UID";
129: public static final String PLAN_ELEMENT_TYPE = "Plan_Element_Type";
130: // values for types of plan elements
131: public static final String PLAN_ELEMENT_AGGREGATION = "Aggregation";
132: public static final String PLAN_ELEMENT_ALLOCATION = "Allocation";
133: public static final String PLAN_ELEMENT_ASSET_TRANSFER = "Asset Transfer";
134: public static final String PLAN_ELEMENT_DISPOSITION = "Disposition";
135: public static final String PLAN_ELEMENT_EXPANSION = "Expansion";
136: public static final String PLAN_ELEMENT_UNKNOWN = "Unknown";
137: // names for Aggregation properties
138: public static final String AGGREGATION_MPTASK_UID = "Multi_Parent_Task_UID";
139: public static final String AGGREGATION_PARENT_UIDS = "Parent_UIDs";
140: // names for Allocation properties
141: public static final String ALLOCATION_ASSET_UID = "Asset_UID";
142: public static final String ALLOCATION_LOCAL_ORG_UID = "Allocated_to_Local_Organization";
143: public static final String ALLOCATION_TO_AGENT = "Allocated_to_Agent";
144: public static final String ALLOCATION_TASK_UID = "Allocation_Task_UID";
145: public static final String ALLOCATION_REMOTE_AGENT_UID = "Remote_Agent_UID";
146: // names for AssetTransfer properties
147: public static final String ASSET_TRANSFER_ASSET_UID = "Asset_Transfer_Asset_UID";
148: public static final String ASSET_TRANSFER_ASSIGNEE_UID = "Assignee_UID";
149: public static final String ASSET_TRANSFER_ASSIGNOR = "Assignor";
150: // names for Disposition properties
151: public static final String DISPOSITION_SUCCESS = "Success";
152: // names for Expansion properties
153: public static final String EXPANSION_WORKFLOW_UID = "Workflow_UID";
154: // names for Workflow properties
155: public static final String WORKFLOW_PARENT_TASK_UID = "Parent_Task_UID";
156: public static final String WORKFLOW_TASK_UIDS = "Task_UIDs";
157: // names for Asset properties
158: public static final String ASSET_KEY = "Asset_Key";
159: public static final String ASSET_DESC = "Asset_Description";
160: public static final String ASSET_GROUP_ASSETS = "Asset_Group_Asset";
161: public static final String ASSET_GROUP_NAME = "Asset_Group_Name";
162: public static final String ASSET_NAME = "Asset_Name";
163: public static final String ASSET_PROPERTY = "Asset_Property";
164: public static final String ASSET_AGENT = "Asset_Agent";
165: // names for Task properties
166: public static final String TASK_DIRECT_OBJECT_UID = "Direct_Object_UID";
167: public static final String TASK_END_TIME = "Task_End_Time";
168: public static final String TASK_INPUT_TASK_UID = "Input_Task_UID";
169: public static final String TASK_PARENT_UID = "Parent_UID";
170: public static final String TASK_PLAN_ELEMENT_UID = "Plan_Element_UID";
171: public static final String TASK_PREP_PHRASE = "Prepositional_Phrase";
172: public static final String TASK_SOURCE = "Task_Source";
173: public static final String TASK_TYPE = "Task_Type";
174: public static final String TASK_VERB = "Verb";
175: // values for types of tasks
176: public static final String MPTASK = "MPTask";
177: public static final String SINGLE_TASK = "Task";
178: // names for Organization properties
179: public static final String ORGANIZATION_NAME = "Organization_Name";
180: // ORGANIZATION_KEY_NAME is compared to ORGANIZATION_RELATED_TO
181: public static final String ORGANIZATION_KEY_NAME = "Organization_Key_Name";
182: public static final String ORGANIZATION_RELATED_TO = "Related_To";
183: public static final String ORGANIZATION_ROLE = "Role";
184: // Organization locations over time
185: public static final String ORGANIZATION_LOCATION_START_TIME = "Organization_Location_Start_Time";
186: public static final String ORGANIZATION_LOCATION_END_TIME = "Organization_Location_End_Time";
187: public static final String ORGANIZATION_LOCATIONS = "Organization_Locations";
188: // properties in the List of ORGANIZATION_LOCATIONS
189: public static final String ORGANIZATION_LOCATION_ELEMENT_START_TIME = "Organization_Location_Element_Start_Time";
190: // only used as prefix
191: public static final String ORGANIZATION_LOCATION_ELEMENT = "Organization_Location_Element";
192: public static final String ORGANIZATION_LOCATION_ELEMENT_END_TIME = "Organization_Location_Element_End_Time";
193: public static final String ORGANIZATION_LOCATION_ELEMENT_LATITUDE = "Organization_Location_Element_Latitude";
194: public static final String ORGANIZATION_LOCATION_ELEMENT_LONGITUDE = "Organization_Location_Element_Longitude";
195: public static final String ORGANIZATION_LOCATION_ELEMENT_VERBOSE = "Organization_Location_Element_Verbose";
196: // names for Allocation Result properties
197: public static final String ESTIMATED_ALLOCATION_RESULT_END_TIME = "Estimated_End_Time";
198: public static final String ESTIMATED_ALLOCATION_RESULT_FAILURE_REASON = "Estimated_Failure_Reason";
199: public static final String REPORTED_ALLOCATION_RESULT_END_TIME = "Reported_End_Time";
200: public static final String REPORTED_ALLOCATION_RESULT_FAILURE_REASON = "Reported_Failure_Reason";
201: public static final String OBSERVED_ALLOCATION_RESULT_END_TIME = "Observed_End_Time";
202: public static final String OBSERVED_ALLOCATION_RESULT_FAILURE_REASON = "Observed_Failure_Reason";
203: // argument to plan object filter URL
204: public static final String PLAN_OBJECTS_TO_IGNORE = "planObjectsToIgnore";
205: // for communities
206: public static final String COMMUNITY_MEMBERS = "Members";
207: }
|