softparsmap
Class Compute

java.lang.Object
  extended byooc.LinkedTagInstance
      extended bysoftparsmap.Compute
All Implemented Interfaces:
Dependencies
Direct Known Subclasses:
ComputeFamilyGroup, ComputeFamilyGroupPair

public abstract class Compute
extends LinkedTagInstance

This program is used to compute a task. To get usage of a specific task, type

 Compute [property file] [task did]
 


Constructor Summary
Compute()
           
 
Method Summary
abstract  void computeTask()
          Is called by main method to run task.
 java.lang.String getArg(int i)
          Returns the specified argument.
 java.util.List getArgs()
          Returns a list with remaining arguments.
 Inparalogous getInparalogous()
          Returns a singleton instance of Inparalogous definied by attribute 'inparalogous' which this task can use regarding inparalogous.
 boolean getPrintFamilyInfo()
          If this methods returns true, Compute will print header information and more when executed.
 PropertyFile getPropertyFile()
          Returns the property file.
 java.io.File getTargetFile(java.lang.String templateAttributeName, java.lang.Integer familyNumber)
          Returns a file given the family number and the template attribute name.
 TreeParser getTreeParser(java.lang.String attributeName)
          Returns a parser defined by attribute 'attributeName'.
 boolean initiateDataSource()
          Returns true if the data source should be initiated.
static void main(java.lang.String[] args)
          The main method called to do a task.
 int numberArgs()
          Returns the number of remaining arguments.
 void setArgs(java.util.List args)
           
 boolean useProgressIndicator()
          Returns true if the task is using a dotted progress indicator.
 
Methods inherited from class ooc.LinkedTagInstance
containsKey, get, getAttribute, getAttributeBoolean, getAttributeDouble, getAttributeFloat, getAttributeInteger, getAttributeList, getAttributeRef, getAttributeShort, getAttributeString, getAttributeTag, getChildIterator, getChildIteratorByName, getContainer, getContainerTag, getFirstChildTagByName, getTag, getTagId, getTagInstance, getTagInstance, getTagRef, hasAttributeValue, hasChildTagByName, hasChildTags, hasTag, isMutable, keySet, put, remove, setTag, setupInstance
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Compute

public Compute()
Method Detail

getPropertyFile

public PropertyFile getPropertyFile()
Returns the property file.

Returns:
the property file
See Also:
PropertyFile

getArgs

public java.util.List getArgs()
Returns a list with remaining arguments.

Returns:
the list with remaining arguments.

setArgs

public void setArgs(java.util.List args)

numberArgs

public int numberArgs()
Returns the number of remaining arguments.

Returns:
the number of remianing arguments.

getArg

public java.lang.String getArg(int i)
Returns the specified argument.

Returns:
the specified argument.

getPrintFamilyInfo

public boolean getPrintFamilyInfo()
If this methods returns true, Compute will print header information and more when executed.

Returns:
true if extra header information are printed

initiateDataSource

public boolean initiateDataSource()
Returns true if the data source should be initiated.

Returns:
true if the data source should be initiated.

computeTask

public abstract void computeTask()
Is called by main method to run task.


getTargetFile

public java.io.File getTargetFile(java.lang.String templateAttributeName,
                                  java.lang.Integer familyNumber)
Returns a file given the family number and the template attribute name.

Returns:
a file given the family number and the template attribute name.

getInparalogous

public Inparalogous getInparalogous()
Returns a singleton instance of Inparalogous definied by attribute 'inparalogous' which this task can use regarding inparalogous.

Returns:
a inparalogous instance
See Also:
Inparalogous

getTreeParser

public TreeParser getTreeParser(java.lang.String attributeName)
Returns a parser defined by attribute 'attributeName'.

Parameters:
attributeName - is the name of the attribute that contain the parser did
See Also:
TreeParser

useProgressIndicator

public boolean useProgressIndicator()
Returns true if the task is using a dotted progress indicator.

Returns:
true if the task is using a dotted progress indicator.

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
The main method called to do a task.

Throws:
java.lang.Exception