snl.ccss.jpowersystem
Class AbstractBranch

java.lang.Object
  extended by snl.ccss.jpowersystem.AbstractBranch
All Implemented Interfaces:
Branch
Direct Known Subclasses:
AbstractACPFBranch, AbstractDCPFBranch, AbstractPFBranch

public abstract class AbstractBranch
extends java.lang.Object
implements Branch

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.

Author:
Bryan T. Richardson, Sandia National Laboratories

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

AbstractBranch

public AbstractBranch()
Method Detail

addTo

public 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. It also calls the appropriate bus method to add this branch to the bus.

Specified by:
addTo in interface Branch
Parameters:
from - Bus object to attach one end of branch to
to - Bus object to attach other end of branch to

remove

public void remove()
This method disconnects this branch from the known Bus objects, each endpoint now being set to null. It also calls the appropriate bus method to remove this branch from the bus.

Specified by:
remove in interface Branch