com.oakgrovesystems.reactor.processMediation
Class ProcessChangeCondition

java.lang.Object
  |
  +--com.oakgrovesystems.mediation.AbstractConditionalChange
        |
        +--com.oakgrovesystems.reactor.processMediation.ProcessConditionalChange
              |
              +--com.oakgrovesystems.reactor.processMediation.ProcessChangeCondition
All Implemented Interfaces:
Change, ConditionalChange, ProcessChange, java.io.Serializable

public class ProcessChangeCondition
extends ProcessConditionalChange
implements java.io.Serializable

A ProcessChangeCondition is a ConditionalChange. It is used to automatically apply a change to a Process in response to a condition becoming true.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.oakgrovesystems.reactor.processMediation.ProcessConditionalChange
objectMap
 
Fields inherited from class com.oakgrovesystems.mediation.AbstractConditionalChange
precondition, resultingChange
 
Constructor Summary
ProcessChangeCondition()
          creates a new ProcessChangeCondition
ProcessChangeCondition(com.oakgrovesystems.reactor.processMediation.ProcessCondition changeCondition, com.oakgrovesystems.reactor.processMediation.ProcessChange resultingChange)
          creates a ProcessChangeCondition to apply the specified ProcessChange contingent on the specified ProcessCondition
 
Method Summary
 com.oakgrovesystems.reactor.processMediation.ProcessChangeCondition copy()
          returns a deep copy
 boolean sameAs(java.lang.Object o)
          compares this object for content equality with another object
 void setCondition(com.oakgrovesystems.reactor.processMediation.ProcessCondition changeCondition)
          sets the ProcessCondition that must be true for the ProcessChange to be applied
 void setResultingChange(com.oakgrovesystems.reactor.processMediation.ProcessChange resultingChange)
          sets the ProcessChange that to be applied if the condition is true
 
Methods inherited from class com.oakgrovesystems.reactor.processMediation.ProcessConditionalChange
getCondition, getObjectMap, getResultingChange, isApplicable, isMadeApplicableBy, isMadeInapplicableBy, setObjectMap
 
Methods inherited from class com.oakgrovesystems.mediation.AbstractConditionalChange
applyTo, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.oakgrovesystems.mediation.Change
applyTo
 

Constructor Detail

ProcessChangeCondition

public ProcessChangeCondition()
creates a new ProcessChangeCondition


ProcessChangeCondition

public ProcessChangeCondition(com.oakgrovesystems.reactor.processMediation.ProcessCondition changeCondition,
                              com.oakgrovesystems.reactor.processMediation.ProcessChange resultingChange)
creates a ProcessChangeCondition to apply the specified ProcessChange contingent on the specified ProcessCondition

Parameters:
changeCondition - the ProcessCondition that must be true for the ProcessChange to be applied
resultingChange - the ProcessChange that to be applied if the condition is true
Method Detail

setCondition

public void setCondition(com.oakgrovesystems.reactor.processMediation.ProcessCondition changeCondition)
sets the ProcessCondition that must be true for the ProcessChange to be applied

Parameters:
changeCondition - the ProcessCondition that must be true for the ProcessChange to be applied

setResultingChange

public void setResultingChange(com.oakgrovesystems.reactor.processMediation.ProcessChange resultingChange)
sets the ProcessChange that to be applied if the condition is true

Parameters:
resultingChange - the ProcessChange that to be applied if the condition is true

copy

public com.oakgrovesystems.reactor.processMediation.ProcessChangeCondition copy()
returns a deep copy

Returns:
a deep copy

sameAs

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

Specified by:
sameAs in interface ProcessChange
Specified by:
sameAs in class ProcessConditionalChange
Parameters:
o - the object with which this object should be compared for equality
Returns:
a boolean indicating if the objects are equal


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