Package commodity
Class Commodity
- java.lang.Object
-
- commodity.Commodity
-
- All Implemented Interfaces:
core.InterfaceScenarioElement
public class Commodity extends Object implements core.InterfaceScenarioElement
-
-
Field Summary
Fields Modifier and Type Field Description StringnamebooleanpathfullfloatpvequivSet<Subnetwork>subnetworksSet<output.InterfaceVehicleListener>vehicle_event_listeners
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd_vehicle_event_listener(output.InterfaceVehicleListener ev)commodity.DemandTypeget_demand_type()Stringget_name()List<Long>get_subnetwork_ids()LonggetId()core.ScenarioElementTypegetSEType()jaxb.Commodityto_jaxb()voidvalidate_pre_init(error.OTMErrorLog errorLog)
-
-
-
Field Detail
-
name
public final String name
-
subnetworks
public final Set<Subnetwork> subnetworks
-
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:
getIdin interfacecore.InterfaceScenarioElement
-
getSEType
public final core.ScenarioElementType getSEType()
- Specified by:
getSETypein interfacecore.InterfaceScenarioElement
-
validate_pre_init
public void validate_pre_init(error.OTMErrorLog errorLog)
-
to_jaxb
public jaxb.Commodity to_jaxb()
- Specified by:
to_jaxbin interfacecore.InterfaceScenarioElement
-
get_demand_type
public commodity.DemandType get_demand_type()
-
add_vehicle_event_listener
public void add_vehicle_event_listener(output.InterfaceVehicleListener ev)
-
get_name
public String get_name()
-
-