|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgridiq.poweranalysis.psat.parser.PSATParser
public class PSATParser
A NetworkParser
to handle PSAT data files.
Field Summary | |
---|---|
(package private) int |
lineNumber
|
Constructor Summary | |
---|---|
PSATParser()
|
Method Summary | |
---|---|
Network |
readNetworkFile(java.io.File networkFile)
Parses a network file into a Network object. |
SimResults |
readResults(java.io.File resultsFile)
Parses a simulation results file into a SimResults file. |
void |
writeNetwork(Network network,
java.io.File file)
Serialises a network to file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
int lineNumber
Constructor Detail |
---|
public PSATParser()
Method Detail |
---|
public Network readNetworkFile(java.io.File networkFile) throws java.io.IOException
NetworkParser
Network
object.
readNetworkFile
in interface NetworkParser
networkFile
- The file to parse.
java.io.IOException
public void writeNetwork(Network network, java.io.File file) throws java.io.IOException
NetworkParser
NetworkParser.readNetworkFile(java.io.File)
method
to produce an identical network to that serialised using this method.
writeNetwork
in interface NetworkParser
network
- The network to serialise.file
- The file to write the serialised network to.
java.io.IOException
public SimResults readResults(java.io.File resultsFile) throws java.io.IOException
NetworkParser
SimResults
file.
readResults
in interface NetworkParser
resultsFile
- The simulation results to parse.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |