Package commodity

Class Commodity

  • All Implemented Interfaces:
    core.InterfaceScenarioElement

    public class Commodity
    extends Object
    implements core.InterfaceScenarioElement
    • Field Detail

      • name

        public final String name
      • pathfull

        public boolean pathfull
      • pvequiv

        public float pvequiv
      • vehicle_event_listeners

        public Set<output.InterfaceVehicleListener> vehicle_event_listeners
    • Constructor Detail

      • Commodity

        public Commodity​(jaxb.Commodity jaxb_comm,
                         List<Long> subnet_ids,
                         Map<Long,​Subnetwork> subnetworks)
                  throws error.OTMException
        Throws:
        error.OTMException
    • Method Detail

      • getId

        public final Long getId()
        Specified by:
        getId in interface core.InterfaceScenarioElement
      • getSEType

        public final core.ScenarioElementType getSEType()
        Specified by:
        getSEType in interface core.InterfaceScenarioElement
      • validate_pre_init

        public void validate_pre_init​(error.OTMErrorLog errorLog)
      • to_jaxb

        public jaxb.Commodity to_jaxb()
        Specified by:
        to_jaxb in interface core.InterfaceScenarioElement
      • get_demand_type

        public commodity.DemandType get_demand_type()
      • add_vehicle_event_listener

        public void add_vehicle_event_listener​(output.InterfaceVehicleListener ev)
      • get_subnetwork_ids

        public List<Long> get_subnetwork_ids()
      • get_name

        public String get_name()