eaLib API Docs
Last Modified : January 7 2002

mss.ea.al
Class AlgorithmChecker

java.lang.Object
  |
  +--mss.ea.al.AlgorithmChecker

public class AlgorithmChecker
extends java.lang.Object

Checker for checking the consistency of the algorithm components.

Since:
0.2
Version:
$Revision: 1.5 $ $Date: 2001/11/27 15:32:12 $
Author:
Andreas Rummler

Field Summary
protected  java.util.HashSet conduitSet
          Set of conduit elements.
protected  java.util.HashSet connectorSet
          Set of connector elements.
protected  int errorCount
          Number of detected errors.
protected  java.util.HashSet forkSet
          Set of fork elements.
protected  java.util.HashSet mergeSet
          Set of merge elements.
protected  java.util.HashSet sinkSet
          Set of sink elements.
protected  java.util.HashSet sourceSet
          Set of source elements.
 
Constructor Summary
AlgorithmChecker()
          Constructor.
 
Method Summary
protected  void checkConduits()
           
protected  void checkConnectors()
          Checks the consistency of all connector elements.
 int checkForErrors()
          Performs the built-in checks.
protected  void checkForks()
          Checks the consistency of all fork elements.
protected  void checkMergers()
          Checks the consistency of all merge elements.
protected  void checkPresence()
          Checks the number present sources, sinks and processing elements.
protected  void checkSinks()
          Checks the consistency of all sink elements.
protected  void checkSources()
          Checks the consistency of all source elements.
 void printInformation()
          Prints some more or less useful information about the algorithm structure.
protected  void printSetInfo(java.util.HashSet set, java.lang.String setName)
           
 void register(FlowElement element)
          Registers a flow element at the checker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceSet

protected java.util.HashSet sourceSet
Set of source elements.

connectorSet

protected java.util.HashSet connectorSet
Set of connector elements.

forkSet

protected java.util.HashSet forkSet
Set of fork elements.

mergeSet

protected java.util.HashSet mergeSet
Set of merge elements.

sinkSet

protected java.util.HashSet sinkSet
Set of sink elements.

conduitSet

protected java.util.HashSet conduitSet
Set of conduit elements.

errorCount

protected int errorCount
Number of detected errors.
Constructor Detail

AlgorithmChecker

public AlgorithmChecker()
Constructor.
Method Detail

register

public void register(FlowElement element)
Registers a flow element at the checker.
Parameters:
element - flow element for checking

checkForErrors

public int checkForErrors()
Performs the built-in checks.
Returns:
number of detected errors

checkPresence

protected void checkPresence()
Checks the number present sources, sinks and processing elements.

checkSources

protected void checkSources()
Checks the consistency of all source elements.

checkSinks

protected void checkSinks()
Checks the consistency of all sink elements.

checkConnectors

protected void checkConnectors()
Checks the consistency of all connector elements.

checkForks

protected void checkForks()
Checks the consistency of all fork elements.

checkMergers

protected void checkMergers()
Checks the consistency of all merge elements.

checkConduits

protected void checkConduits()

printInformation

public void printInformation()
Prints some more or less useful information about the algorithm structure.

printSetInfo

protected void printSetInfo(java.util.HashSet set,
                            java.lang.String setName)

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS