org.objectweb.dream.protocol
Class ProcessImpl

java.lang.Object
  extended byorg.objectweb.dream.protocol.ProcessImpl
All Implemented Interfaces:
Cloneable, Comparable, Process, Serializable

public class ProcessImpl
extends Object
implements Cloneable, Serializable, Process, Comparable

Implementation of the Processinterface. This class can be overriden to produce customized processes for particular protocols.

See Also:
Serialized Form

Field Summary
protected  short id
          Identifier of the process.
 
Constructor Summary
ProcessImpl(short id)
          Allocates a new ProcessImpl object.
 
Method Summary
 Object clone()
          Clones the process.
 int compareTo(Object o)
           
 boolean equals(Object arg0)
           
 short getId()
          Returns the identifier of the process.
 int hashCode()
           
 void readExternal(ObjectInput in)
           
 void setId(short id)
          Sets the identifier of the process.
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected short id
Identifier of the process.

Constructor Detail

ProcessImpl

public ProcessImpl(short id)
Allocates a new ProcessImpl object.

Parameters:
id - the identifier of the process
Method Detail

getId

public final short getId()
Returns the identifier of the process.

Specified by:
getId in interface Process
Returns:
the identifier of the process.

setId

public void setId(short id)
Description copied from interface: Process
Sets the identifier of the process.

Specified by:
setId in interface Process
Parameters:
id - the identifier to set.
See Also:
Process.setId(short)

clone

public Object clone()
             throws CloneNotSupportedException
Description copied from interface: Process
Clones the process.

Specified by:
clone in interface Process
Throws:
CloneNotSupportedException
See Also:
Object.clone()

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Throws:
IOException
See Also:
Externalizable.writeExternal(java.io.ObjectOutput)

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Throws:
IOException
ClassNotFoundException
See Also:
Externalizable.readExternal(java.io.ObjectInput)

equals

public boolean equals(Object arg0)
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
See Also:
Object.hashCode()

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable
See Also:
Comparable.compareTo(java.lang.Object)


Copyright © 2003, 2004 - INRIA Rhone-Alpes - All Rights Reserved.