Package commodity
Class Path
- java.lang.Object
-
- commodity.Subnetwork
-
- commodity.Path
-
- All Implemented Interfaces:
InterfaceScenarioElement
public class Path extends Subnetwork
-
-
Field Summary
Fields Modifier and Type Field Description ArrayList<Link>ordered_links
-
Constructor Summary
Constructors Constructor Description Path(Subnetwork js)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Linkget_destination()Longget_destination_node_id()Linkget_link_following(Link link)List<Link>get_ordered_links()Linkget_origin()Longget_origin_node_id()booleanhas(Link link)booleanpopulate_ordered_links(Network network)voidvalidate_pre_init(OTMErrorLog errorLog)-
Methods inherited from class commodity.Subnetwork
add_commodity, add_links, get_commodity_ids, get_link_ids, getId, getName, getSEType, has_link_id, remove_links, to_jaxb, validate_post_init
-
-
-
-
Constructor Detail
-
Path
public Path(Subnetwork js) throws OTMException
- Throws:
OTMException
-
-
Method Detail
-
populate_ordered_links
public boolean populate_ordered_links(Network network)
-
validate_pre_init
public void validate_pre_init(OTMErrorLog errorLog)
- Overrides:
validate_pre_initin classSubnetwork
-
get_origin
public Link get_origin()
-
get_origin_node_id
public Long get_origin_node_id()
-
get_destination
public Link get_destination()
-
get_destination_node_id
public Long get_destination_node_id()
-
has
public boolean has(Link link)
-
-