org.objectweb.dream.message.chunk
Interface ArrowChunk

All Known Implementing Classes:
BasicArrowChunk

public interface ArrowChunk

A general purpose chunk that can be use to identify a sender and a receiver of a message. The sender and the receiver are identified using a short integer.


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 getArrowFrom()
          Returns the identifier of the sender.
 short getArrowTo()
          Returns the identifier of the receiver.
 void setArrowFrom(short from)
          Sets the identifier of the sender.
 void setArrowTo(short to)
          Sets the identifier of the receiver.
 

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

getArrowFrom

public short getArrowFrom()
Returns the identifier of the sender.

Returns:
the identifier of the sender.

setArrowFrom

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

Parameters:
from - the identifier of the sender.

getArrowTo

public short getArrowTo()
Returns the identifier of the receiver.

Returns:
the identifier of the receiver.

setArrowTo

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

Parameters:
to - the identifier of the receiver.


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