org.objectweb.dream.protocol.bus.logicalClock
Class LogicalClockExportIdentifier

java.lang.Object
  extended by org.objectweb.dream.protocol.bus.logicalClock.LogicalClockExportIdentifier
All Implemented Interfaces:
Externalizable, Serializable, ExportIdentifier

public class LogicalClockExportIdentifier
extends Object
implements ExportIdentifier, Externalizable

Export identifier handled by logical clock protocol.

See Also:
Serialized Form

Field Summary
static int FIFO_CLOCK_TYPE
          The type value corresponding to a FIFO clock.
static String FIFO_CLOCK_TYPE_NAME
          The name of the type corresponding to a FIFO clock.
static int MATRIX_CAUSAL_CLOCK_TYPE
          The type value corresponding to a matrix causal clock.
static String MATRIX_CAUSAL_CLOCK_TYPE_NAME
          the name of the type corresponding to a matrix causal clock.
 
Fields inherited from interface org.objectweb.dream.protocol.ExportIdentifier
EMPTY_EXPORT_IDENTIFIER_ARRAY
 
Constructor Summary
LogicalClockExportIdentifier(int type, String chunkName, ExportIdentifier next)
           
 
Method Summary
 String getChunkName()
           
 int getClockType()
           
 ExportIdentifier[] getNextExportIds()
          Returns an array of identifiers corresponding to lower level protocol layers, if any.
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIFO_CLOCK_TYPE

public static final int FIFO_CLOCK_TYPE
The type value corresponding to a FIFO clock.

See Also:
Constant Field Values

FIFO_CLOCK_TYPE_NAME

public static final String FIFO_CLOCK_TYPE_NAME
The name of the type corresponding to a FIFO clock.

See Also:
Constant Field Values

MATRIX_CAUSAL_CLOCK_TYPE

public static final int MATRIX_CAUSAL_CLOCK_TYPE
The type value corresponding to a matrix causal clock.

See Also:
Constant Field Values

MATRIX_CAUSAL_CLOCK_TYPE_NAME

public static final String MATRIX_CAUSAL_CLOCK_TYPE_NAME
the name of the type corresponding to a matrix causal clock.

See Also:
Constant Field Values
Constructor Detail

LogicalClockExportIdentifier

public LogicalClockExportIdentifier(int type,
                                    String chunkName,
                                    ExportIdentifier next)
Parameters:
type - the logical clock type either FIFO_CLOCK_TYPE or MATRIX_CAUSAL_CLOCK_TYPE.
chunkName - the name of the LogicalClockChunk.
next - the export identifier of the lower level protocol.
Method Detail

getClockType

public int getClockType()
Returns:
Returns the clockType.

getChunkName

public String getChunkName()
Returns:
Returns the chunkName.

getNextExportIds

public ExportIdentifier[] getNextExportIds()
Description copied from interface: ExportIdentifier
Returns an array of identifiers corresponding to lower level protocol layers, if any.

Specified by:
getNextExportIds in interface ExportIdentifier
Returns:
an array of identifiers corresponding to lower level protocol layers. If their is no lower level protocol layer, returns an empty array.
See Also:
ExportIdentifier.getNextExportIds()

readExternal

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

writeExternal

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


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