gridiq.poweranalysis
Interface PowerFlowSolver

All Known Implementing Classes:
PSATSolver

public interface PowerFlowSolver

This interface defines operations for any class that interfaces with a power simulation tool. Operations are defined for performing a power flow analysis on a network, loading a network from a file, and for specifying paths to the simulation tool executable.


Method Summary
 Network load(java.io.File networkFile)
          Loads an initial network file for a simulation.
 void setApplicationPath(java.lang.String string)
          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.
 

Method Detail

solve

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

Parameters:
network - The network to perform the analysis on.
Returns:
The simulation results.
Throws:
java.lang.Exception

setApplicationPath

void setApplicationPath(java.lang.String string)
Sets the application path for the power simulation tool. This path differs from the executable path for simulation tools such as PSAT or Matpower which are libraries for other tools such as Octave or Matlab. For example the application path specifies the path to the PSAT library while the executable path specifies the path to Octave.

Parameters:
string - The application path to set.

setExecutablePath

void setExecutablePath(java.lang.String octavePath)
Sets the executable path for the power simulation tool. This path differs from the application path for simulation tools such as PSAT or Matpower which are libraries for other tools such as Octave or Matlab. For example the application path specifies the path to the PSAT library while the executable path specifies the path to Octave.

Parameters:
octavePath -

load

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

Parameters:
networkFile - The file to load the network from.
Returns:
The network loaded.
Throws:
java.io.IOException