| org.cougaar.planning.ldm.plan.ScheduleImpl org.cougaar.planning.ldm.plan.RelationshipScheduleImpl
RelationshipScheduleImpl | public class RelationshipScheduleImpl extends ScheduleImpl implements NewRelationshipSchedule(Code) | | A RelationshipSchedule is a representation of an object (must implement
HasRelationships) relationships
|
Method Summary | |
public HasRelationships | getHasRelationships() | public synchronized Collection | getMatchingRelationships(UnaryPredicate predicate) getMatchingRelationships - return all Relationships which pass the
specified UnaryPredicate. | public synchronized Collection | getMatchingRelationships(Role role) getMatchingRelationships - return all Relationships which contain the
specified role. | public Collection | getMatchingRelationships(Role role, long time) getMatchingRelationships - return all Relationships which contain the
specified role and intersect the time. | public synchronized Collection | getMatchingRelationships(Role role, TimeSpan timeSpan) getMatchingRelationships - return all Relationships which contain the
specified role and overlap the specified time span. | public synchronized Collection | getMatchingRelationships(Role role, long startTime, long endTime) | public Collection | getMatchingRelationships(Role role, HasRelationships otherObject, long time) getMatchingRelationships - return all Relationships which contain the
specified other object, match the specified role and intersect the time. | public synchronized Collection | getMatchingRelationships(Role role, HasRelationships other, TimeSpan timeSpan) getMatchingRelationships - return all Relationships which contain the
specified other object, match the specified role and and overlap the specified time
span. | public synchronized Collection | getMatchingRelationships(Role role, HasRelationships other, long startTime, long endTime) | public Collection | getMatchingRelationships(HasRelationships otherObject, long time) getMatchingRelationships - return all Relationships which contain the
specified other object and intersect the specified time. | public synchronized Collection | getMatchingRelationships(HasRelationships other, TimeSpan timeSpan) getMatchingRelationships - return all Relationships which contain the
specified other object and overlap the specified time span. | public synchronized Collection | getMatchingRelationships(HasRelationships other, long startTime, long endTime) getMatchingRelationships - return all Relationships which contain the
specified other object and overlap the time span specified by the start and end
time arguments. | public synchronized Collection | getMatchingRelationships(String roleSuffix, long time) getMatchingRelationships - return all Relationships where the role
ends with the specifed suffix and intersects the specified time. | public synchronized Collection | getMatchingRelationships(String roleSuffix, TimeSpan timeSpan) getMatchingRelationships - return all Relationships where the role
ends with the specifed suffix and overlap the specified time span. | public synchronized Collection | getMatchingRelationships(String roleSuffix, long startTime, long endTime) | public synchronized Collection | getMatchingRelationships(long time) getMatchingRelationships - return all Relationships which intersect the
specified time. | public synchronized Collection | getMatchingRelationships(TimeSpan timeSpan) getMatchingRelationships - return all Relationships which overlap the
specified time span. | public synchronized Collection | getMatchingRelationships(long startTime, long endTime) | public Role | getMyRole(Relationship relationship) getMyRole - return role for schedule's HasRelationships in the specified
relationship. | public HasRelationships | getOther(Relationship relationship) getOther - return other (i.e. | public Role | getOtherRole(Relationship relationship) getMyRole - return role for other HasRelationships in the specified
relationship. | public synchronized boolean | isAppropriateScheduleElement(Object o) | public static void | main(String[] args) | public synchronized void | setHasRelationships(HasRelationships hasRelationships) |
RelationshipScheduleImpl | public RelationshipScheduleImpl()(Code) | | |
RelationshipScheduleImpl | public RelationshipScheduleImpl(RelationshipSchedule schedule)(Code) | | Construct a schedule which has the same elements as the specified
collection. If the specified collection needs to be sorted, it will
be.
|
getMatchingRelationships | public synchronized Collection getMatchingRelationships(UnaryPredicate predicate)(Code) | | getMatchingRelationships - return all Relationships which pass the
specified UnaryPredicate.
Parameters: predicate - UnaryPredicate to use in screening Relationships a sorted Collection containing all Relationships whichwhich pass the specified UnaryPredicate |
getMatchingRelationships | public synchronized Collection getMatchingRelationships(Role role)(Code) | | getMatchingRelationships - return all Relationships which contain the
specified role.
Parameters: role - Role to look for a sorted Collection containing all Relationships whichwhich match the specified Role |
getMatchingRelationships | public Collection getMatchingRelationships(Role role, long time)(Code) | | getMatchingRelationships - return all Relationships which contain the
specified role and intersect the time.
Parameters: role - Role to look for Parameters: time - long specifying the time a sorted Collection containing all Relationships whichwhich match the specified Role and intersect the specified time |
getMatchingRelationships | public synchronized Collection getMatchingRelationships(Role role, TimeSpan timeSpan)(Code) | | getMatchingRelationships - return all Relationships which contain the
specified role and overlap the specified time span.
Parameters: role - Role to look for Parameters: timeSpan - TimeSpan a sorted Collection containing all Relationships whichwhich match the specified Role and overlap the specified time span |
getMatchingRelationships | public synchronized Collection getMatchingRelationships(Role role, long startTime, long endTime)(Code) | | getMatchingRelationships - return all Relationships which contain the
specified role and overlap the time span specified by the start and end
time arguments
Parameters: role - Role to look for Parameters: startTime - long specifying the start of the time span Parameters: endTime - long specifying the end of the time span a sorted Collection containing all Relationships whichwhich match the specified Role and overlap the specified time span |
getMatchingRelationships | public Collection getMatchingRelationships(Role role, HasRelationships otherObject, long time)(Code) | | getMatchingRelationships - return all Relationships which contain the
specified other object, match the specified role and intersect the time.
Parameters: role - Role to look for Parameters: otherObject - HasRelationships Parameters: time - long specifying the time a sorted Collection containing all Relationships which contain the specified other object, match the specified role and direct object flag, and intersect the specified time. |
getMatchingRelationships | public synchronized Collection getMatchingRelationships(Role role, HasRelationships other, TimeSpan timeSpan)(Code) | | getMatchingRelationships - return all Relationships which contain the
specified other object, match the specified role and and overlap the specified time
span.
Parameters: role - Role to look for Parameters: other - HasRelationships Parameters: timeSpan - TimeSpan a sorted Collection containing all Relationships whichwhich match the specified Role and overlap the specified time span |
getMatchingRelationships | public synchronized Collection getMatchingRelationships(Role role, HasRelationships other, long startTime, long endTime)(Code) | | getMatchingRelationships - return all Relationships which match the
specified other object, match the specified role, and overlap the
the time span specified by the start and end time arguments
Parameters: role - Role to look for Parameters: other - HasRelationships Parameters: startTime - long specifying the start of the time span Parameters: endTime - long specifying the end of the time span a sorted Collection containing all Relationships whichwhich match the specified Role, direct object flag and overlap the specified time span. |
getMatchingRelationships | public Collection getMatchingRelationships(HasRelationships otherObject, long time)(Code) | | getMatchingRelationships - return all Relationships which contain the
specified other object and intersect the specified time.
Parameters: otherObject - HasRelationships Parameters: time - long a sorted Collection containing all Relationships whichwhich contain the specified other HasRelationships and intersect the specified time span |
getMatchingRelationships | public synchronized Collection getMatchingRelationships(HasRelationships other, TimeSpan timeSpan)(Code) | | getMatchingRelationships - return all Relationships which contain the
specified other object and overlap the specified time span.
Parameters: other - HasRelationships Parameters: timeSpan - TimeSpan a sorted Collection containing all Relationships whichwhich match the specified Role and overlap the specified time span |
getMatchingRelationships | public synchronized Collection getMatchingRelationships(HasRelationships other, long startTime, long endTime)(Code) | | getMatchingRelationships - return all Relationships which contain the
specified other object and overlap the time span specified by the start and end
time arguments.
Parameters: other - HasRelationships Parameters: startTime - long specifying the start of the time span Parameters: endTime - long specifying the end of the time span a sorted Collection containing all Relationships whichwhich match the specified direct object flag and overlap the specified time span |
getMatchingRelationships | public synchronized Collection getMatchingRelationships(String roleSuffix, long time)(Code) | | getMatchingRelationships - return all Relationships where the role
ends with the specifed suffix and intersects the specified time.
Parameters: roleSuffix - String Parameters: time - long specifying the time a sorted Collection containing all Relationships whichwhich match the specified role suffix and intersect the specified time |
getMatchingRelationships | public synchronized Collection getMatchingRelationships(String roleSuffix, TimeSpan timeSpan)(Code) | | getMatchingRelationships - return all Relationships where the role
ends with the specifed suffix and overlap the specified time span.
Parameters: roleSuffix - String Parameters: timeSpan - TimeSpan a sorted Collection containing all Relationships whichwhich match the specified role suffix and overlap the specified time span |
getMatchingRelationships | public synchronized Collection getMatchingRelationships(String roleSuffix, long startTime, long endTime)(Code) | | getMatchingRelationships - return all Relationships where the role
ends with the specifed suffix and overlap the time span specified by
the start and end time arguments
Parameters: roleSuffix - String Parameters: startTime - long specifying the start of the time span Parameters: endTime - long specifying the end of the time span a sorted Collection containing all Relationships whichwhich match the specified role suffix and overlap the specified time span |
getMatchingRelationships | public synchronized Collection getMatchingRelationships(long time)(Code) | | getMatchingRelationships - return all Relationships which intersect the
specified time.
Parameters: time - long specifying the time a sorted Collection containing all Relationships whichwhich intersect the specified time |
getMatchingRelationships | public synchronized Collection getMatchingRelationships(TimeSpan timeSpan)(Code) | | getMatchingRelationships - return all Relationships which overlap the
specified time span.
Parameters: timeSpan - TimeSpan a sorted Collection containing all Relationships whichwhich contain overlap the specified time span |
getMatchingRelationships | public synchronized Collection getMatchingRelationships(long startTime, long endTime)(Code) | | getMatchingRelationships - return all Relationships which overlap the
time span specified by the start and end time arguments
Parameters: startTime - long specifying the start of the time span Parameters: endTime - long specifying the end of the time span a sorted Collection containing all Relationships whichwhich match overlap the specified time span |
getMyRole | public Role getMyRole(Relationship relationship)(Code) | | getMyRole - return role for schedule's HasRelationships in the specified
relationship.
Parameters: relationship - Relationship Role |
getOther | public HasRelationships getOther(Relationship relationship)(Code) | | getOther - return other (i.e. not schedule's) HasRelationships in the
specified relationship.
Parameters: relationship - Relationship HasRelationships |
getOtherRole | public Role getOtherRole(Relationship relationship)(Code) | | getMyRole - return role for other HasRelationships in the specified
relationship.
Parameters: relationship - Relationship Role |
isAppropriateScheduleElement | public synchronized boolean isAppropriateScheduleElement(Object o)(Code) | | |
|
|