gridiq.poweranalysis.psat.parser
Class ShuntParser

java.lang.Object
  extended by gridiq.poweranalysis.psat.parser.ShuntParser
All Implemented Interfaces:
DeviceParser

 class ShuntParser
extends java.lang.Object
implements DeviceParser

Parses the Shunt.con array in a PSAT data file and applies the properties to devices in the network.

Author:
colin

Constructor Summary
ShuntParser()
           
 
Method Summary
 java.lang.String getString(java.lang.Object object)
          Serialises the given object into a string representation for writing to a network definition file.
 void parseLine(java.lang.String line, Network network)
          Parses a line of a network definition file by instantiating a network device described by the given string and adding it to the given network.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShuntParser

ShuntParser()
Method Detail

parseLine

public void parseLine(java.lang.String line,
                      Network network)
               throws ParseException
Description copied from interface: DeviceParser
Parses a line of a network definition file by instantiating a network device described by the given string and adding it to the given network.

Specified by:
parseLine in interface DeviceParser
Parameters:
line - A line of a network definition file.
network - The network to add the device to.
Throws:
ParseException

getString

public java.lang.String getString(java.lang.Object object)
Description copied from interface: DeviceParser
Serialises the given object into a string representation for writing to a network definition file.

Specified by:
getString in interface DeviceParser
Parameters:
object - The network device to serialise.
Returns:
A String representation of the device.