ibis.satin.impl.spawnSync
Class Stamp

java.lang.Object
  extended by ibis.satin.impl.spawnSync.Stamp
All Implemented Interfaces:
Serializable

public final class Stamp
extends Object
implements Serializable

Implements globally-unique identifications for Satin jobs.

See Also:
Serialized Form

Method Summary
static Stamp createStamp(Stamp parentStamp)
          Creates a new unique stamp from the specified parent stamp.
static void deleteStamp(Stamp s)
           
 boolean equals(Object other)
           
 int hashCode()
           
 boolean isDescendentOf(Stamp other)
          Determines if this stamp is a descendent of the specified stamp.
 boolean stampEquals(Stamp other)
          Compares two stamps.
 String toString()
          Computes a String representation of this Stamp.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

createStamp

public static Stamp createStamp(Stamp parentStamp)
Creates a new unique stamp from the specified parent stamp.

Parameters:
parentStamp - stamp of the spawner, or null if there is no parent.

deleteStamp

public static void deleteStamp(Stamp s)

stampEquals

public boolean stampEquals(Stamp other)
Compares two stamps.

Parameters:
other - the stamp to compare to.
Returns:
true if equal, false if not.

isDescendentOf

public boolean isDescendentOf(Stamp other)
Determines if this stamp is a descendent of the specified stamp.

Parameters:
other - the stamp to compare to.
Returns:
true if this stamp is a descendent.

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Computes a String representation of this Stamp.

Overrides:
toString in class Object
Returns:
the String representation.


The Ibis project