Package commodity

Class Subnetwork

  • All Implemented Interfaces:
    core.InterfaceScenarioElement

    public class Subnetwork
    extends Object
    implements core.InterfaceScenarioElement
    • 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 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)
      • validate_post_init

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

        public jaxb.Subnetwork to_jaxb()
        Specified by:
        to_jaxb in interface core.InterfaceScenarioElement
      • getName

        public String getName()
      • get_commodity_ids

        public List<Long> get_commodity_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)