| java.lang.Object org.cougaar.servicediscovery.SDFactory
SDFactory | public class SDFactory implements Factory(Code) | | Service discovery factory Domain package definition.
|
Method Summary | |
public Lineage | copyLineage(Lineage original) | public Collection | createTimeSpanPreferences(TimeSpan timeSpan) | public static Preference | findPreference(Collection preferences, int aspectType) | public static double | getPreference(Collection preferences, int aspectType) | public static long | getTimePreference(Collection preferences, int aspectType) Return the (long) value associated with a Time Preference with the
specified AspectType, avoiding long->double->long type conversion. | public static TimeSpan | getTimeSpanFromPreferences(Collection preferences) | public Lineage | newLineage(int type) | public Lineage | newLineage(int type, List list) | public Lineage | newLineage(int type, List list, TimeSpan timeSpan) | public LineageRelay | newLineageRelay(MessageAddress superior) | public static Schedule | newLineageSchedule() | public static LineageScheduleElement | newLineageScheduleElement(TimeSpan timeSpan) | public static LineageScheduleElement | newLineageScheduleElement(long startTime, long endTime) | public MMQueryRequest | newMMQueryRequest(MMQuery query) | public ProviderCapabilities | newProviderCapabilities(String providerName) | public ServiceContract | newServiceContract(Asset provider, Role serviceRole, Collection servicePreferences) | public static ServiceContractRelationship | newServiceContractRelationship(ServiceContractRelay relay, HasRelationships provider, HasRelationships client) | public ServiceContractRelay | newServiceContractRelay(MessageAddress provider, ServiceRequest request) | public ServiceRequest | newServiceRequest(Asset client, Role serviceRole, Collection servicePreferences) | public static void | revokeServiceContract(ServiceContract contract) | public static boolean | validLineageType(int lineageType) | public static boolean | validMilitaryEchelon(String echelon) |
copyLineage | public Lineage copyLineage(Lineage original)(Code) | | Copy an existing Lineage - does not create new UID
Lineage |
getPreference | public static double getPreference(Collection preferences, int aspectType)(Code) | | Return the value associated with a Preference with the
specified AspectType
Parameters: preferences - Collection of Preferences (will ignore in the Collectionwhich are not Preferences Parameters: aspectType - int specifying the AspectType of the Preference value, -1 if matching Preference not found. |
getTimePreference | public static long getTimePreference(Collection preferences, int aspectType)(Code) | | Return the (long) value associated with a Time Preference with the
specified AspectType, avoiding long->double->long type conversion.
Parameters: preferences - Collection of Preferences (will ignore any in the Collectionwhich are not Preferences) Parameters: aspectType - int specifying the AspectType of the Preference value, -1 if matching Preference not found. |
newLineage | public Lineage newLineage(int type)(Code) | | Generate a new Lineage
Lineage |
newLineage | public Lineage newLineage(int type, List list)(Code) | | Generate a new Lineage
Lineage |
newLineageSchedule | public static Schedule newLineageSchedule()(Code) | | Generate a new Lineage
Lineage |
newLineageScheduleElement | public static LineageScheduleElement newLineageScheduleElement(long startTime, long endTime)(Code) | | Generate a new LineageScheduleElement
LineageScheduleElement |
newMMQueryRequest | public MMQueryRequest newMMQueryRequest(MMQuery query)(Code) | | Generate a new MMQueryRequest
Parameters: query - - MMQuery to be executed MMQueryRequest |
newProviderCapabilities | public ProviderCapabilities newProviderCapabilities(String providerName)(Code) | | Generate a new ProviderCapabilities()
a ProviderCapabilities |
revokeServiceContract | public static void revokeServiceContract(ServiceContract contract)(Code) | | revoke a service contract
|
validLineageType | public static boolean validLineageType(int lineageType)(Code) | | validate specified lineage type
|
validMilitaryEchelon | public static boolean validMilitaryEchelon(String echelon)(Code) | | validate specified military echelon
|
|
|