|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gridiq.poweranalysis.psat.parser.SlackParser
class SlackParser
Parses the SW.con array in a PSAT data file and applies the properties to devices in the network.
Constructor Summary | |
---|---|
SlackParser()
|
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 |
---|
SlackParser()
Method Detail |
---|
public void parseLine(java.lang.String line, Network network) throws ParseException
DeviceParser
parseLine
in interface DeviceParser
line
- A line of a network definition file.network
- The network to add the device to.
ParseException
public java.lang.String getString(java.lang.Object object)
DeviceParser
getString
in interface DeviceParser
object
- The network device to serialise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |