org.objectweb.dream.message.chunk
Class BasicArrowChunk

java.lang.Object
  extended byorg.objectweb.dream.message.AbstractChunk
      extended byorg.objectweb.dream.message.chunk.BasicArrowChunk
All Implemented Interfaces:
ArrowChunk, Chunk, Cloneable, Serializable

public class BasicArrowChunk
extends AbstractChunk
implements ArrowChunk, Chunk

A basic Chunk interface that defines an arrow from a source to a destination.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.objectweb.dream.message.chunk.ArrowChunk
DEFAULT_NAME, TYPE
 
Constructor Summary
BasicArrowChunk()
           
 
Method Summary
 short getArrowFrom()
          Returns the identifier of the sender.
 short getArrowTo()
          Returns the identifier of the receiver.
 ChunkType getType()
          Returns the type of this chunk.
 void recycle()
          Recycles the chunk.
 void setArrowFrom(short from)
          Sets the identifier of the sender.
 void setArrowTo(short to)
          Sets the identifier of the receiver.
 void transfertState(Chunk newInstance)
          Transferts the state of this chunk into the specified new instance.
 
Methods inherited from class org.objectweb.dream.message.AbstractChunk
getMessageManagerId, setMessageManagerId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.dream.message.Chunk
getMessageManagerId, setMessageManagerId
 

Constructor Detail

BasicArrowChunk

public BasicArrowChunk()
Method Detail

getArrowFrom

public short getArrowFrom()
Description copied from interface: ArrowChunk
Returns the identifier of the sender.

Specified by:
getArrowFrom in interface ArrowChunk
Returns:
the identifier of the sender.
See Also:
ArrowChunk.getArrowFrom()

setArrowFrom

public void setArrowFrom(short from)
Description copied from interface: ArrowChunk
Sets the identifier of the sender.

Specified by:
setArrowFrom in interface ArrowChunk
Parameters:
from - the identifier of the sender.
See Also:
ArrowChunk.setArrowFrom(short)

getArrowTo

public short getArrowTo()
Description copied from interface: ArrowChunk
Returns the identifier of the receiver.

Specified by:
getArrowTo in interface ArrowChunk
Returns:
the identifier of the receiver.
See Also:
ArrowChunk.getArrowTo()

setArrowTo

public void setArrowTo(short to)
Description copied from interface: ArrowChunk
Sets the identifier of the receiver.

Specified by:
setArrowTo in interface ArrowChunk
Parameters:
to - the identifier of the receiver.
See Also:
ArrowChunk.setArrowTo(short)

getType

public ChunkType getType()
Description copied from interface: Chunk
Returns the type of this chunk.

Specified by:
getType in interface Chunk
Returns:
the type of this chunk.
See Also:
Chunk.getType()

recycle

public void recycle()
Description copied from interface: Chunk
Recycles the chunk. This method must be called by message managers for the chunk to be reusable.

Specified by:
recycle in interface Chunk
See Also:
Chunk.recycle()

transfertState

public void transfertState(Chunk newInstance)
Description copied from interface: Chunk
Transferts the state of this chunk into the specified new instance.

Specified by:
transfertState in interface Chunk
Parameters:
newInstance - the new instance of chunk.
See Also:
Chunk.transfertState(Chunk)


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