|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsnl.ccss.jpowersystem.AbstractBus
public abstract class AbstractBus
This is an abstract implementation of the Bus interface that can be extended by objects representing buses in a power sytem. It implements all the required methods in a minimal fashion so as to make it possible to add the object to a power system.
Constructor Summary | |
---|---|
AbstractBus()
|
Method Summary | |
---|---|
void |
add(Branch branch)
This method connects the given branch by adding the branch to the list of connected branch objects. |
void |
add(BusDevice device)
This method connects the given bus device by adding the bus device to the list of connected bus device objects. |
void |
addTo(PowerSystem powerSystem)
This method connects this bus to the given power system by setting its PowerSystem variable to the given power system. |
java.util.List |
getBranchList()
This method returns a list of the branches connected to this bus. |
java.util.List |
getBusDeviceList()
This method returns a list of the bus devices connected to this bus. |
void |
remove()
This method removes this bus from the power system it currently belongs to by removing each branch and bus device connected to it and setting its PowerSystem variable to null . |
void |
remove(Branch branch)
This method removes the given branch by removing it from the list of connected branch objects. |
void |
remove(BusDevice device)
This method removes the given bus device by removing it from the list of connected bus device objects. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractBus()
Method Detail |
---|
public java.util.List getBranchList()
getBranchList
in interface Bus
public java.util.List getBusDeviceList()
getBusDeviceList
in interface Bus
public void addTo(PowerSystem powerSystem)
addTo
in interface Bus
powerSystem
- PowerSystem object in which this bus existspublic void add(Branch branch)
add
in interface Bus
branch
- Branch object that is attached to this buspublic void add(BusDevice device)
add
in interface Bus
device
- BusDevice object that is attached to this buspublic void remove()
null
.
remove
in interface Bus
public void remove(Branch branch)
remove
in interface Bus
branch
- Branch object to be removed from this buspublic void remove(BusDevice device)
remove
in interface Bus
device
- BusDevice object to be removed from this bus
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |