|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsnl.ccss.jpowersystem.PowerSystem
public class PowerSystem
This abstract class represents the main PowerSystem object. A power system object is similar to a "graph" or "network" object, in that it's nothing more than a collection of buses (nodes) and branches (edges) that make up the power system (network or graph). Additionally, it also contains bus devices, which are additional objects that commonly exist at substations in a power system (such as a generator, load, capacitor bank, etc).
Constructor Summary | |
---|---|
PowerSystem()
Default PowerSystem constructor. |
Method Summary | |
---|---|
void |
add(Branch branch,
Bus from,
Bus to)
This method is used to add a Branch object to the power system. |
void |
add(Bus bus)
This method is used to add a Bus object to the power system. |
void |
add(BusDevice device,
Bus bus)
This method is used to add a BusDevice object to the power system. |
java.util.List |
getBranchList()
Returns a complete list of branches that exist in the power system. |
java.util.List |
getBranchList(Bus bus)
Returns a list of branches that are connected to the given bus. |
java.util.List |
getBusDeviceList()
Returns a complete list of bus devices that exist in the power system. |
java.util.List |
getBusDeviceList(Bus bus)
Returns a list of bus devices that are connected to the given bus. |
java.util.List |
getBusList()
Returns a complete list of buses that exist in the power system. |
void |
move(Branch branch,
Bus newFrom,
Bus newTo)
This method is used to move a Branch object around in a power system. |
void |
move(BusDevice device,
Bus newBus)
This method is used to move a BusDevice object around in a power system. |
void |
remove(Branch branch)
This method is used to remove a Branch object from the power sytem. |
void |
remove(Bus bus)
This method is used to remove a Bus object from the power sytem. |
void |
remove(BusDevice device)
This method is used to remove a BusDevice object from the power sytem. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PowerSystem()
Method Detail |
---|
public java.util.List getBusList()
public java.util.List getBranchList()
public java.util.List getBranchList(Bus bus)
bus
- Bus object to query for connected branches
public java.util.List getBusDeviceList()
public java.util.List getBusDeviceList(Bus bus)
bus
- Bus object to query for connected bus devices
public void add(Bus bus)
bus
- Bus object to be added to the power systempublic void add(Branch branch, Bus from, Bus to)
branch
- Branch object to be added to the power systemfrom
- Bus object to attach one end of branch toto
- Bus object to attach other end of branch topublic void add(BusDevice device, Bus bus)
device
- BusDevice object to be added to the power systembus
- Bus object to attach bus device topublic void move(Branch branch, Bus newFrom, Bus newTo)
branch
- Branch object to be movednewFrom
- New Bus object that will be one endpoint for branchnewTo
- New Bus object that will be other endpoing for branchpublic void move(BusDevice device, Bus newBus)
device
- BusDevice object to be movednewBus
- New Bus object that bus device will be connected topublic void remove(Bus bus)
bus
- Bus object to be removed from power systempublic void remove(Branch branch)
branch
- Branch object to be removed from power systempublic void remove(BusDevice device)
device
- BusDevice object to be removed from power system
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |