com.oakgrovesystems.reactor.processMediation
Class ProcessStatusAddition

java.lang.Object
  |
  +--com.oakgrovesystems.reactor.processMediation.ProcessStatusAddition
All Implemented Interfaces:
Change, ProcessChange, java.io.Serializable

public class ProcessStatusAddition
extends java.lang.Object
implements ProcessChange, java.io.Serializable

Adds a Status to the current statuses attribute of a Process.

See Also:
Serialized Form

Constructor Summary
ProcessStatusAddition(com.oakgrovesystems.reactor.ReactorObjectId newStatusId)
          Creates a new ProcessStatusAddition that adds the Status specified to a Process's current Statuses
 
Method Summary
 void applyTo(java.lang.Object o)
          Adds the Status id to the specified Process's list of current statuses
 com.oakgrovesystems.reactor.ReactorObjectId getNewStatusId()
          Returns the id of the Status to be added to the Process's current statuses
 boolean sameAs(java.lang.Object o)
          Compares two ProcessChanges for content equality.
 java.lang.String toString()
          Returns a String representation of this ProcessStatusAddition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessStatusAddition

public ProcessStatusAddition(com.oakgrovesystems.reactor.ReactorObjectId newStatusId)
Creates a new ProcessStatusAddition that adds the Status specified to a Process's current Statuses

Parameters:
newStatusId - the id of the Status to be added to the Process's current statuses
Method Detail

applyTo

public void applyTo(java.lang.Object o)
             throws ChangeNotApplicableException
Adds the Status id to the specified Process's list of current statuses

Specified by:
applyTo in interface Change
Parameters:
o - the Process to which the change should be applied
Throws:
ChangeNotApplicableException - if the change can not be applied

getNewStatusId

public final com.oakgrovesystems.reactor.ReactorObjectId getNewStatusId()
Returns the id of the Status to be added to the Process's current statuses

Returns:
the id of the Status to be added to the Process's current statuses

toString

public java.lang.String toString()
Returns a String representation of this ProcessStatusAddition

Overrides:
toString in class java.lang.Object
Returns:
a String representation of this ProcessStatusAddition

sameAs

public boolean sameAs(java.lang.Object o)
Compares two ProcessChanges for content equality. Instances of different classes are not equal

Specified by:
sameAs in interface ProcessChange
Parameters:
o - the object to compare for equality
Returns:
a boolean indicating whether or not the two objects are equal


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