gridiq.poweranalysis
Interface DeviceParser

All Known Implementing Classes:
BusNameParser, BusParser, DemandParser, LineParser, PQParser, PVParser, ShuntParser, SlackParser, SupplyParser

public interface DeviceParser

This interface represents any class that parses specific devices from a network definition file. The parseLine method is used to add a device to a network from a string representation of the device, while the getString method is used to serialise a device into a string representation.

Author:
colin

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.
 

Method Detail

parseLine

void parseLine(java.lang.String line,
               Network network)
               throws ParseException
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.

Parameters:
line - A line of a network definition file.
network - The network to add the device to.
Throws:
ParseException

getString

java.lang.String getString(java.lang.Object object)
Serialises the given object into a string representation for writing to a network definition file.

Parameters:
object - The network device to serialise.
Returns:
A String representation of the device.