org.objectweb.dream.protocol
Interface ArrowChunk

All Known Implementing Classes:
ArrowChunkImpl

public interface ArrowChunk

A general purpose chunk that can be use to identify the sender and receiver processes of a message. Note that a process is identified using a short integer.

See Also:
Process

Field Summary
static String DEFAULT_NAME
          The default name for chunks of this type
static ChunkType TYPE
          The chunk type of chunks implementing this interface.
 
Method Summary
 short getProcessIdFrom()
          Returns the identifier of the sender process.
 short getProcessIdTo()
          Returns the identifier of the receiver process.
 void setProcessIdFrom(short from)
          Sets the identifier of the sender process.
 void setProcessIdTo(short to)
          Sets the identifier of the receiver process.
 

Field Detail

DEFAULT_NAME

public static final String DEFAULT_NAME
The default name for chunks of this type

See Also:
Constant Field Values

TYPE

public static final ChunkType TYPE
The chunk type of chunks implementing this interface.

Method Detail

getProcessIdFrom

public short getProcessIdFrom()
Returns the identifier of the sender process.

Returns:
the identifier of the sender process.

setProcessIdFrom

public void setProcessIdFrom(short from)
Sets the identifier of the sender process.

Parameters:
from - the identifier of the sender process.

getProcessIdTo

public short getProcessIdTo()
Returns the identifier of the receiver process.

Returns:
the identifier of the receiver process.

setProcessIdTo

public void setProcessIdTo(short to)
Sets the identifier of the receiver process.

Parameters:
to - the identifier of the receiver process.


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