|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsnl.ccss.jpowersystem.AbstractBranch
public abstract class AbstractBranch
This is an abstract implementation of the Branch interface that can be extended by objects representing branches 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 | |
|---|---|
AbstractBranch()
|
|
| Method Summary | |
|---|---|
void |
addTo(Bus from,
Bus to)
This method connects this branch to the given Bus objects, each bus being set as an endpoint of the branch. |
void |
remove()
This method disconnects this branch from the known Bus objects, each endpoint now being set to null. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractBranch()
| Method Detail |
|---|
public void addTo(Bus from,
Bus to)
addTo in interface Branchfrom - Bus object to attach one end of branch toto - Bus object to attach other end of branch topublic void remove()
null.
It also calls the appropriate bus method to remove this
branch from the bus.
remove in interface Branch
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||