gridiq.poweranalysis.psat.parser
Class PVParser

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

 class PVParser
extends java.lang.Object
implements DeviceParser

Parsers the PV.con array in a PSAT data file and applies the properties to devices in the network.

Author:
colin

Constructor Summary
PVParser()
           
 
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

PVParser

PVParser()
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.