snl.ccss.jpowersystem.parsers
Interface Parser

All Known Implementing Classes:
CDFParser

public interface Parser

Interface that should be implemented by any type of parser created for use in this library.

Author:
Bryan T. Richardson - Sandia National Laboratories

Method Summary
 PowerSystem loadPowerSystemFromFile(java.lang.String file)
          This method should perform the operations necessary to parse the given file and from the parsed data create a new power system.
 void writePowerSystemToFile(PowerSystem powerSystem, java.lang.String file)
          This method should perform the operations necessary to write the data contained in the given power system to the given file in the correct format.
 

Method Detail

loadPowerSystemFromFile

PowerSystem loadPowerSystemFromFile(java.lang.String file)
This method should perform the operations necessary to parse the given file and from the parsed data create a new power system.

Parameters:
file - Data file to be parsed
Returns:
PowerSystem object created from the data in the given file

writePowerSystemToFile

void writePowerSystemToFile(PowerSystem powerSystem,
                            java.lang.String file)
This method should perform the operations necessary to write the data contained in the given power system to the given file in the correct format.

Parameters:
powerSystem - PowerSystem object from which to create the data file
file - Location of data file to be created from power system