org.objectweb.dream.protocol.causality
Class Update

java.lang.Object
  extended byorg.objectweb.dream.protocol.causality.Update
All Implemented Interfaces:
Externalizable, Serializable

public class Update
extends Object
implements Externalizable

Matrix update elements

See Also:
Serialized Form

Constructor Summary
Update()
          Default contructor.
Update(short l, short c, int stamp)
          Creates an element in a new empty list.
Update(short l, short c, int s, Update list)
          Creates an element and links it after the head.
 
Method Summary
 short getColumn()
           
 short getLine()
           
 Update getNext()
           
 int getStamp()
           
 void readExternal(ObjectInput in)
           
static Update readUpdate(ObjectInput in)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Update

public Update()
Default contructor. Defines for serialization.


Update

public Update(short l,
              short c,
              int stamp)
Creates an element in a new empty list.

Parameters:
l - Matrix line.
c - Matrix column.
stamp - Element stamp.

Update

public Update(short l,
              short c,
              int s,
              Update list)
Creates an element and links it after the head.

Parameters:
l - Matrix line.
c - Matrix column.
s - Element stamp.
list - The head list element.
Method Detail

getLine

public short getLine()
Returns:
Matrix clock line element.

getColumn

public short getColumn()
Returns:
Matrix clock column element.

getStamp

public int getStamp()
Returns:
Matrix clock value.

getNext

public Update getNext()
Returns:
pointer on next element of update list.

toString

public String toString()
See Also:
Object.toString()

readExternal

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

writeExternal

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

readUpdate

public static Update readUpdate(ObjectInput in)
                         throws IOException,
                                ClassNotFoundException
Throws:
IOException
ClassNotFoundException
See Also:
Externalizable.readExternal(ObjectInput)


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