com.oakgrovesystems.reactor.processMediation
Class AbstractProcessCondition

java.lang.Object
  |
  +--com.oakgrovesystems.reactor.processMediation.AbstractProcessCondition
All Implemented Interfaces:
Condition, ProcessCondition
Direct Known Subclasses:
ProcessHasStatusCondition, ProcessStateEqualsCondition

public abstract class AbstractProcessCondition
extends java.lang.Object
implements ProcessCondition

A Condition that is a boolean function of the state of one or more Processes. Evaluated by looking up the necessary Processes from a Map.


Field Summary
protected  java.util.Map objectMap
          The Map to be used to lookup Process objects necessary to evaluate the ProcessCondition.
 
Constructor Summary
AbstractProcessCondition()
           
 
Method Summary
abstract  com.oakgrovesystems.reactor.processMediation.ProcessCondition copy()
          returns a deep copy of this ProcessCondition.
 java.util.Map getObjectMap()
          gets the Map that is used to lookup Process objects necessary to evaluate the ProcessCondition.
abstract  boolean sameAs(java.lang.Object o)
          tests this ProcessCondition for content equality with another object.
 void setObjectMap(java.util.Map objectMap)
          Sets the Map that is used to lookup Process objects necessary to evaluate the ProcessCondition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.oakgrovesystems.mediation.Condition
isMadeFalseBy, isMadeTrueBy, isTrue
 

Field Detail

objectMap

protected java.util.Map objectMap
The Map to be used to lookup Process objects necessary to evaluate the ProcessCondition.

Constructor Detail

AbstractProcessCondition

public AbstractProcessCondition()
Method Detail

setObjectMap

public void setObjectMap(java.util.Map objectMap)
Sets the Map that is used to lookup Process objects necessary to evaluate the ProcessCondition.

Specified by:
setObjectMap in interface ProcessCondition
Parameters:
objectMap - the Map to be used for evaluation.

getObjectMap

public java.util.Map getObjectMap()
gets the Map that is used to lookup Process objects necessary to evaluate the ProcessCondition.

Specified by:
getObjectMap in interface ProcessCondition
Returns:
the Map that is used for evaluation

copy

public abstract com.oakgrovesystems.reactor.processMediation.ProcessCondition copy()
returns a deep copy of this ProcessCondition.

Specified by:
copy in interface ProcessCondition
Returns:
a deep copy of this ProcessCondition.

sameAs

public abstract boolean sameAs(java.lang.Object o)
tests this ProcessCondition for content equality with another object.

Specified by:
sameAs in interface ProcessCondition
Parameters:
o - the object to compare with this ProcessCondition for equality.
Returns:
true if the two objects' classes and content are equal. false otherwise.


Copyright (c) 1999-2004 Oak Grove Systems. All Rights Reserved.