public interface INetBusElement<TBus extends Bus>
extends org.eclipse.emf.ecore.EObject
NetPackage.getINetBusElement()| Modifier and Type | Method and Description |
|---|---|
TBus |
addBus(TBus bus)
Add the bus object into the network container.
|
TBus |
getBus(int sortNumber)
Get the bus object identified by the id.
|
TBus |
getBus(java.lang.String id)
Get the bus object identified by the id.
|
TBus |
getBus(java.lang.String id,
int secNo)
Get the bus object identified by the id and secId
|
int |
getNoActiveBus()
Return total number of active buses in the net
|
int |
getNoBus()
Return total number of buses in the net
|
boolean |
hasBus(java.lang.String busId)
Check if the network already contains a bus object with the busId
|
boolean |
removeBus(java.lang.String busId)
Remove the bus object identified by the busId from the network container.
|
boolean |
removeBus(TBus bus)
Remove the bus object from the network container.
|
void |
setBus(java.lang.String busId,
TBus bus)
replace the bus object in the network container.
|
int getNoBus()
int getNoActiveBus()
TBus addBus(TBus bus) throws InterpssException
bus - bus object
InterpssExceptionboolean hasBus(java.lang.String busId)
busId - bus id
TBus getBus(java.lang.String id)
id - bus id
TBus getBus(java.lang.String id, int secNo)
id - bus idsecNo - bus section number
TBus getBus(int sortNumber)
sortNumber - bus sort number
void setBus(java.lang.String busId,
TBus bus)
throws InterpssException
busId - bus idbus - the bus object to be removed
InterpssExceptionboolean removeBus(java.lang.String busId)
throws InterpssException
busId - bus id
InterpssExceptionboolean removeBus(TBus bus) throws InterpssException
bus - the bus object to be removed
InterpssException