protected class GoalPlanner.PartnerList extends Object implements Iterable<GoalPlanner.PartnerRecord>
| Modifier and Type | Field and Description | 
|---|---|
| protected int | myPlaceInList | 
| protected int | numberVehiclesOnStation | 
| protected List<GoalPlanner.PartnerRecord> | partners | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | GoalPlanner.PartnerList() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | add(int newVehicleID)Adds a new vehicle record | 
| protected boolean | allOnStation() | 
| protected int | contains(int vehicleID) | 
| protected GoalPlanner.PartnerRecord | find(int vehicleID) | 
| protected int | getMyPlaceInList()Returns the location in the ordered list of this vehicle | 
| Iterator<GoalPlanner.PartnerRecord> | iterator()Implements the Iterator interface | 
| protected void | remove(int removeVehicleID)Removes a vehicle from the list | 
| protected void | setOnStation(int vehicleID)Sets the requested vehicle record to indicate that the vehicle is on station | 
protected List<GoalPlanner.PartnerRecord> partners
protected int myPlaceInList
protected int numberVehiclesOnStation
public Iterator<GoalPlanner.PartnerRecord> iterator()
iterator in interface Iterable<GoalPlanner.PartnerRecord>protected void add(int newVehicleID)
newVehicleID - protected void remove(int removeVehicleID)
removeVehicleID - vehicleID to be removedprotected int contains(int vehicleID)
vehicleID - of the vehicle being checked forprotected boolean allOnStation()
protected void setOnStation(int vehicleID)
vehicleID - protected GoalPlanner.PartnerRecord find(int vehicleID)
vehicleID - to be looked forprotected int getMyPlaceInList()