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 String
name
boolean
pathfull
float
pvequiv
Set<Subnetwork>
subnetworks
Set<output.InterfaceVehicleListener>
vehicle_event_listeners
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add_vehicle_event_listener(output.InterfaceVehicleListener ev)
commodity.DemandType
get_demand_type()
String
get_name()
List<Long>
get_subnetwork_ids()
Long
getId()
core.ScenarioElementType
getSEType()
jaxb.Commodity
to_jaxb()
void
validate_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:
getId
in interfacecore.InterfaceScenarioElement
-
getSEType
public final core.ScenarioElementType getSEType()
- Specified by:
getSEType
in interfacecore.InterfaceScenarioElement
-
validate_pre_init
public void validate_pre_init(error.OTMErrorLog errorLog)
-
to_jaxb
public jaxb.Commodity to_jaxb()
- Specified by:
to_jaxb
in 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()
-
-