softparsmap
Class ComputeFamilyNumbers

java.lang.Object
  extended byooc.LinkedTagInstance
      extended bysoftparsmap.Compute
          extended bysoftparsmap.ComputeFamilyGroup
              extended bysoftparsmap.ComputeFamilyNumbers
All Implemented Interfaces:
Dependencies

public class ComputeFamilyNumbers
extends ComputeFamilyGroup

Will print the numbers of the family group. The numbers are printed in order.


Constructor Summary
ComputeFamilyNumbers()
           
 
Method Summary
 void afterCompute(boolean verbose)
          Prints the set with family numbers.
 void beforeCompute(boolean verbose)
          Creating the set where all family numbers are stored.
 void computeFamily(Family family, boolean verbose)
          Store the family number in the set.
 
Methods inherited from class softparsmap.ComputeFamilyGroup
computeTask
 
Methods inherited from class softparsmap.Compute
getArg, getArgs, getInparalogous, getPrintFamilyInfo, getPropertyFile, getTargetFile, getTreeParser, initiateDataSource, main, numberArgs, setArgs, useProgressIndicator
 
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

ComputeFamilyNumbers

public ComputeFamilyNumbers()
Method Detail

beforeCompute

public void beforeCompute(boolean verbose)
Creating the set where all family numbers are stored.

Overrides:
beforeCompute in class ComputeFamilyGroup
Parameters:
verbose - does nothing.

computeFamily

public void computeFamily(Family family,
                          boolean verbose)
                   throws java.lang.Throwable
Store the family number in the set.

Specified by:
computeFamily in class ComputeFamilyGroup
Parameters:
family - is the family that will be computed
verbose - is true if extra information is printed
Throws:
java.lang.Throwable - because exceptions are logged for every family but the task will continue on the rest of the family group.

afterCompute

public void afterCompute(boolean verbose)
Prints the set with family numbers.

Overrides:
afterCompute in class ComputeFamilyGroup
Parameters:
verbose - does nothing