static {
   try {
     properties[0] =
         new PropertyDescriptor(
             "fuel_consumption_per_mile",
             RailSelfPropulsionPG.class,
             "getFuelConsumptionPerMile",
             null);
     properties[1] =
         new PropertyDescriptor("engine_type", RailSelfPropulsionPG.class, "getEngineType", null);
     properties[2] =
         new PropertyDescriptor("fuel_type", RailSelfPropulsionPG.class, "getFuelType", null);
     properties[3] =
         new PropertyDescriptor(
             "maximum_speed", RailSelfPropulsionPG.class, "getMaximumSpeed", null);
     properties[4] =
         new PropertyDescriptor(
             "cruise_speed", RailSelfPropulsionPG.class, "getCruiseSpeed", null);
     properties[5] =
         new PropertyDescriptor(
             "full_payload_range", RailSelfPropulsionPG.class, "getFullPayloadRange", null);
     properties[6] =
         new PropertyDescriptor(
             "empty_payload_range", RailSelfPropulsionPG.class, "getEmptyPayloadRange", null);
   } catch (Exception e) {
     org.cougaar.util.log.Logging.getLogger(RailSelfPropulsionPG.class)
         .error("Caught exception", e);
   }
 }
Exemplo n.º 2
0
 static {
   try {
     properties[0] =
         new PropertyDescriptor(
             "road_surface_requirements",
             GroundVehiclePG.class,
             "getRoadSurfaceRequirements",
             null);
     properties[1] =
         new PropertyDescriptor(
             "mean_distance_between_repairs",
             GroundVehiclePG.class,
             "getMeanDistanceBetweenRepairs",
             null);
     properties[2] =
         new PropertyDescriptor("vehicle_type", GroundVehiclePG.class, "getVehicleType", null);
     properties[3] =
         new PropertyDescriptor(
             "crew_requirements", GroundVehiclePG.class, "getCrewRequirements", null);
   } catch (Exception e) {
     org.cougaar.util.log.Logging.getLogger(GroundVehiclePG.class).error("Caught exception", e);
   }
 }