com.isti.trinetwatch.controlAgentSim
Class ControlIniParser

java.lang.Object
  extended by com.isti.util.CfgFileParser
      extended by com.isti.trinetwatch.controlAgentSim.ControlIniParser

public class ControlIniParser
extends CfgFileParser

Class ControlIniParser parses a given control.ini for the information the control agent needs to perform the controling of stations it is meant to do.


Field Summary
 
Fields inherited from class com.isti.util.CfgFileParser
CLOSE_BRACKET_CHAR, commaSepFlag, errorMessage, inTokens, OPEN_BRACKET_CHAR, wordSlashFlag
 
Constructor Summary
ControlIniParser(java.io.Reader rdr)
           
 
Method Summary
 boolean parseStream(StationTypeTable typeTable, StationTable stationsTable)
          Parses the given input stream as a station information file.
 
Methods inherited from class com.isti.util.CfgFileParser
getErrorMessage, parseEqualsNumber, parseEqualsString, resetInput, setDupFieldMsg, setIllegalCharMsg, setNoCloseBracketMsg, setNoOpenBracketMsg, setUnexpectedEOFMsg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlIniParser

public ControlIniParser(java.io.Reader rdr)
Method Detail

parseStream

public boolean parseStream(StationTypeTable typeTable,
                           StationTable stationsTable)
Parses the given input stream as a station information file.

Parameters:
typeTable - The object in which the different station types are stored.
stationsTable - StationTable object to be filled in.
Returns:
true if successful, false if parameter or syntax error detected.