stella.util
Class RandomOffsetParser

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by stella.log.LogParser
                  extended by stella.util.RandomOffsetParser
All Implemented Interfaces:
Cloneable, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying

public class RandomOffsetParser
extends LogParser

This class parses master log files to grab unique-ID and applied random offset during firewire alignment.


Nested Class Summary
 
Nested classes/interfaces inherited from class stella.log.LogParser
LogParser.Tail
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
static String FIRST
          This is the line we scane for in an acquire procedure.
static String HEAD
          How an acquire procedure is started.
 
Fields inherited from class stella.log.LogParser
DEFDATEFORMAT, KEY_DATEFORMAT, KEY_HASHOST
 
Fields inherited from class util.PropertyBundles
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES
 
Fields inherited from class util.PropertyResources
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset
 
Fields inherited from class util.PropertyContainer
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR
 
Fields inherited from interface util.ResourceSupplying
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Fields inherited from interface util.PropertySupplying
CONFIG, KEY_CLASS
 
Constructor Summary
RandomOffsetParser(Map<String,String> prop)
          Constructs a new log parser.
 
Method Summary
static void main(String[] arg)
          Reads the log file on the first command line argument and parser all offsets out of it.
 Map<String,Vector2D> scan(File f)
          Extracts the unique id plus a required offset from a log file
 
Methods inherited from class stella.log.LogParser
dateFilter, dateFilter, dateFilter, dateFilter, dateFilter, dateFilter, levelFilter, read, read, readFile, readFile, readList, readTail, sshTail
 
Methods inherited from class util.PropertyBundles
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource
 
Methods inherited from class util.PropertyResources
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, init, keyCreate, keyCreate, reload, setApplet
 
Methods inherited from class util.PropertyContainer
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface util.ResourceSupplying
getResource, getResourceAsStream, getResources
 
Methods inherited from interface util.PropertySupplying
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties
 
Methods inherited from interface util.Initializable
init
 

Field Detail

HEAD

public static final String HEAD
How an acquire procedure is started.

See Also:
Constant Field Values

FIRST

public static final String FIRST
This is the line we scane for in an acquire procedure.

See Also:
Constant Field Values
Constructor Detail

RandomOffsetParser

public RandomOffsetParser(Map<String,String> prop)
Constructs a new log parser.

Method Detail

scan

public Map<String,Vector2D> scan(File f)
                          throws ParseException
Extracts the unique id plus a required offset from a log file

Throws:
ParseException

main

public static void main(String[] arg)
                 throws ParseException
Reads the log file on the first command line argument and parser all offsets out of it. Updates the done-table, if applicable.

Throws:
ParseException