snl.ccss.jpowerflow
Class AbstractPFSolver
java.lang.Object
snl.ccss.jpowerflow.AbstractPFSolver
- All Implemented Interfaces:
- java.lang.Runnable, PFSolver
- Direct Known Subclasses:
- DCSolver, FullNewton
public abstract class AbstractPFSolver
- extends java.lang.Object
- implements PFSolver, java.lang.Runnable
This is an abstract implementation of the PFSolver
interface that can be extended by power flow
simulators. This abstract class also implements
the Runnable interface so power flow simulations
can be ran concurrently in seperate threads.
- Author:
- Bryan T. Richardson - Sandia National Laboratories
Field Summary |
static boolean |
DEBUG
|
Method Summary |
void |
run()
This method is required by the Runnable interface
calls on the solve method required by the PFsolver
interface. |
void |
setPowerSystem(PFPowerSystem powerSystem)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface snl.ccss.jpowerflow.PFSolver |
solve |
DEBUG
public static final boolean DEBUG
AbstractPFSolver
public AbstractPFSolver()
run
public void run()
- This method is required by the Runnable interface
calls on the solve method required by the PFsolver
interface. The PFPowerSystem powerSystem variable
must be set via the setPowerSystem method before
starting the thread.
- Specified by:
run
in interface java.lang.Runnable
setPowerSystem
public void setPowerSystem(PFPowerSystem powerSystem)