Exemplo n.º 1
0
 protected void setTravelType(String t) {
   if (type == null || !type.toString().equals(t)) // Make sure we have a valid type
   {
     type = loadType(t); // Set the type of the vehicle
     MarkDirty(); // Mark the vehicle as dirty
   } // End of if statement
 } // End of setTravelType(String t)
Exemplo n.º 2
0
 // This function will set the type of the vehicle
 protected void setTravelType(TravelTypes t) {
   if (type == null || !type.equals(t)) // Make sure we have a valid type
   {
     type = t; // Set the type to t
     MarkDirty(); // Mark the vehicle as dirty
   } // End of if statement
 } // End of setTravelType(TravelType t)
Exemplo n.º 3
0
 public ArrayList<Segment> getSchedule() {
   if (schedule == null)
     schedule = Segment.LoadAll("where ModeType = '" + type.toString() + "' and VehicleID= " + id);
   return schedule;
 }
Exemplo n.º 4
0
 // This function returns the TravelType of the vehicle
 public String getTravelType() {
   return type.toString();
 } // End of getTravelType