Package commodity
Class Subnetwork
- java.lang.Object
-
- commodity.Subnetwork
-
- All Implemented Interfaces:
core.InterfaceScenarioElement
public class Subnetwork extends Object implements core.InterfaceScenarioElement
-
-
Constructor Summary
Constructors Constructor Description Subnetwork(Subnetwork that)
Subnetwork(Long id, String name, Set<Long> link_ids, Set<Long> comm_ids, Scenario scenario)
Subnetwork(jaxb.Subnetwork js)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add_commodity(Commodity c)
void
add_links(Collection<Long> new_link_ids)
List<Long>
get_commodity_ids()
Collection<Long>
get_link_ids()
Long
getId()
String
getName()
core.ScenarioElementType
getSEType()
boolean
has_link_id(Long link_id)
void
remove_links(Collection<Long> rlink_ids)
jaxb.Subnetwork
to_jaxb()
void
validate_post_init(error.OTMErrorLog errorLog)
void
validate_pre_init(error.OTMErrorLog errorLog)
-
-
-
Constructor Detail
-
Subnetwork
public Subnetwork(Long id, String name, Set<Long> link_ids, Set<Long> comm_ids, Scenario scenario) throws error.OTMException
- Throws:
error.OTMException
-
Subnetwork
public Subnetwork(Subnetwork that)
-
Subnetwork
public Subnetwork(jaxb.Subnetwork js) 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)
-
validate_post_init
public void validate_post_init(error.OTMErrorLog errorLog)
-
to_jaxb
public jaxb.Subnetwork to_jaxb()
- Specified by:
to_jaxb
in interfacecore.InterfaceScenarioElement
-
getName
public String getName()
-
get_link_ids
public Collection<Long> get_link_ids()
-
has_link_id
public boolean has_link_id(Long link_id)
-
add_commodity
public void add_commodity(Commodity c)
-
add_links
public void add_links(Collection<Long> new_link_ids) throws error.OTMException
- Throws:
error.OTMException
-
remove_links
public void remove_links(Collection<Long> rlink_ids)
-
-