| java.lang.Object org.cougaar.lib.util.UTILItinerary
UTILItinerary | public class UTILItinerary (Code) | | |
Method Summary | |
public ItineraryElement | getItineraryLeg(Verb role, Schedule itin) | public void | getItineraryLeg(Verb role, Schedule itin, Vector vec_to_return) | public Schedule | makeItinerary(PlanningFactory ldmf, Enumeration itineraryElements) makes the itinerary
Parameters: ldmf - The factory Parameters: itineraryElements - all the legs. | public NewItineraryElement | makeItineraryElement(PlanningFactory ldmf, Verb v) Utility methods for creating a ItineraryElements, which will be
indirectObjects to the PrepPhrase ItineraryOf. | public void | setItineraryLeg(NewItineraryElement leg, Location startLoc, Location endLoc, Date start, Date end) |
getItineraryLeg | public ItineraryElement getItineraryLeg(Verb role, Schedule itin)(Code) | | Return the first leg of this itinerary with the given role
Parameters: role - role of the itinerary element to return Parameters: itin - itinerary through which to search the first itinerary leg found in the enumeration returned by the Schedule null if no element is found |
getItineraryLeg | public void getItineraryLeg(Verb role, Schedule itin, Vector vec_to_return)(Code) | | Return all the legs of this itinerary with the given role
NOTE that the vector is expected to be empty or at least
initialized and ready to be added to- no initialization is done
Parameters: role - role of the itinerary element to return Parameters: itin - itinerary through which to search Parameters: vec_to_return - of itinerary elements to return |
makeItinerary | public Schedule makeItinerary(PlanningFactory ldmf, Enumeration itineraryElements)(Code) | | makes the itinerary
Parameters: ldmf - The factory Parameters: itineraryElements - all the legs. Schedule the itinerary |
makeItineraryElement | public NewItineraryElement makeItineraryElement(PlanningFactory ldmf, Verb v)(Code) | | Utility methods for creating a ItineraryElements, which will be
indirectObjects to the PrepPhrase ItineraryOf.
Parameters: ldmf - the PlanningFactory Parameters: v - the Verb that describes the role of the ItineraryElement NewItineraryElement |
setItineraryLeg | public void setItineraryLeg(NewItineraryElement leg, Location startLoc, Location endLoc, Date start, Date end)(Code) | | sets a leg of the itinerary
Parameters: leg - the itineraryElement to set Parameters: startLoc - starting location of the leg Parameters: endLoc - ending location of the leg, should be same as startLoc ifthe leg is either LOAD or UNLOAD Parameters: start - starting time of the leg Parameters: end - ending time of the leg |
|
|