com.oakgrovesystems.reactor.processMediation
Class ProcessPrecondition

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

public class ProcessPrecondition
extends ProcessConditionalChange
implements java.io.Serializable

A ProcessPrecondition is a ConditionalChange. It is used to automatically start a Process contingent on 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
ProcessPrecondition()
          creates a new ProcessPrecondition
ProcessPrecondition(com.oakgrovesystems.reactor.processMediation.ProcessCondition precondition)
          creates a new ProcessPrecondition with the specified ProcessCondition
 
Method Summary
 com.oakgrovesystems.reactor.processMediation.ProcessPrecondition copy()
          returns a deep copy
 boolean sameAs(java.lang.Object o)
          compares this object for content equality with another object
 void setPrecondition(com.oakgrovesystems.reactor.processMediation.ProcessCondition precondition)
          Sets the ProcessCondition that must become true for the ProcessPrecondition to be applied (to automatically start the Process)
 
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

ProcessPrecondition

public ProcessPrecondition()
creates a new ProcessPrecondition


ProcessPrecondition

public ProcessPrecondition(com.oakgrovesystems.reactor.processMediation.ProcessCondition precondition)
creates a new ProcessPrecondition with the specified ProcessCondition

Parameters:
precondition - the ProcessCondition that must be true for the ProcessPrecondition to be applied (i.e. for the Process to be started)
Method Detail

setPrecondition

public void setPrecondition(com.oakgrovesystems.reactor.processMediation.ProcessCondition precondition)
Sets the ProcessCondition that must become true for the ProcessPrecondition to be applied (to automatically start the Process)

Parameters:
precondition - the ProcessCondition that must become true for the ProcessPrecondition (to automatically start the Process)

copy

public com.oakgrovesystems.reactor.processMediation.ProcessPrecondition 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.