|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NetworkParser
Provides an interface for classes that read and write network definition and simulation results for a power simulation tool. Such classes must contain methods to parse network definition files in the specific format of that tool, read simulation results in the format of that tool, and serialise networks into the format for that tool.
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. |
Method Detail |
---|
Network readNetworkFile(java.io.File networkFile) throws java.io.IOException
Network
object.
networkFile
- The file to parse.
java.io.IOException
SimResults readResults(java.io.File resultsFile) throws java.io.IOException
SimResults
file.
resultsFile
- The simulation results to parse.
java.io.IOException
void writeNetwork(Network network, java.io.File file) throws java.io.IOException
readNetworkFile(java.io.File)
method
to produce an identical network to that serialised using this method.
network
- The network to serialise.file
- The file to write the serialised network to.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |