gridiq.poweranalysis
Class PSATSolver

java.lang.Object
  extended by gridiq.poweranalysis.PSATSolver
All Implemented Interfaces:
PowerFlowSolver

public class PSATSolver
extends java.lang.Object
implements PowerFlowSolver

This class enables GridIQ to interact with the PSAT power simulation tool using Gnu Octave. System commands are issued to Octave to run power flow analyses as an external process.

Author:
colin

Constructor Summary
PSATSolver()
           
 
Method Summary
 Network load(java.io.File networkFile)
          Loads an initial network file for a simulation.
 void setApplicationPath(java.lang.String appPath)
          Sets the application path for the power simulation tool.
 void setExecutablePath(java.lang.String octavePath)
          Sets the executable path for the power simulation tool.
 SimResults solve(Network network)
          Performs a power flow analysis/simulation on the given network.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PSATSolver

public PSATSolver()
Method Detail

solve

public SimResults solve(Network network)
                 throws java.lang.Exception
Performs a power flow analysis/simulation on the given network.

Specified by:
solve in interface PowerFlowSolver
Parameters:
network - The network to perform the analysis on.
Returns:
The simulation results.
Throws:
java.lang.Exception

load

public Network load(java.io.File networkFile)
             throws java.io.IOException
Loads an initial network file for a simulation.

Specified by:
load in interface PowerFlowSolver
Parameters:
networkFile - The file to load the network from.
Returns:
The network loaded.
Throws:
java.io.IOException

setApplicationPath

public void setApplicationPath(java.lang.String appPath)
Sets the application path for the power simulation tool. This path differs from the executable path, for example the application path specifies the path to the PSAT library while the executable path specifies the path to Octave.

Specified by:
setApplicationPath in interface PowerFlowSolver
Parameters:
appPath - The application path to set.

setExecutablePath

public void setExecutablePath(java.lang.String octavePath)
Sets the executable path for the power simulation tool. This path differs from the application path, for example the application path specifies the path to the PSAT library while the executable path specifies the path to Octave.

Specified by:
setExecutablePath in interface PowerFlowSolver
Parameters:
octavePath - The path to the octave executable.