com.oakgrovesystems.reactor.processMediation
Class ProcessStatusRemoval

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

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

Removes a Status from the current statuses attribute of a Process.

See Also:
Serialized Form

Constructor Summary
ProcessStatusRemoval(com.oakgrovesystems.reactor.ReactorObjectId oldStatusId)
          Creates a new ProcessStatusAddition that removes the Status specified from a Process's current Statuses
 
Method Summary
 void applyTo(java.lang.Object o)
          Removes the Status id from the specified Process's list of current statuses
 com.oakgrovesystems.reactor.ReactorObjectId getOldStatusId()
          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 ProcessStatusRemoval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessStatusRemoval

public ProcessStatusRemoval(com.oakgrovesystems.reactor.ReactorObjectId oldStatusId)
Creates a new ProcessStatusAddition that removes the Status specified from a Process's current Statuses

Parameters:
oldStatusId - the id of the Status to be removed from the Process's current statuses
Method Detail

applyTo

public void applyTo(java.lang.Object o)
             throws ChangeNotApplicableException
Removes the Status id from 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

getOldStatusId

public final com.oakgrovesystems.reactor.ReactorObjectId getOldStatusId()
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 ProcessStatusRemoval

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

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.