Class MsgQueue.MsgListNode

java.lang.Object
  extended by MsgQueue.MsgListNode
Enclosing class:
MsgQueue

protected class MsgQueue.MsgListNode
extends java.lang.Object

Subclass to implement linked list of messages. Consider replacing later with something from Java libraries


Constructor Summary
MsgQueue.MsgListNode()
           Constructor: This variant creates an empty list
MsgQueue.MsgListNode(IMsg msg, MsgQueue.MsgListNode next)
           Constructor: Preferred version
MsgQueue.MsgListNode(MsgQueue.MsgListNode listToClone)
           Clone list Constructor
 
Method Summary
 MsgQueue.MsgListNode append(IMsg msg)
           Simple append function
 MsgQueue.MsgListNode findTail()
           Finds the tail of a list
 IMsg getData()
           Accessor method for list element data
 MsgQueue.MsgListNode getNext()
           Accessor method for list next element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MsgQueue.MsgListNode

public MsgQueue.MsgListNode()

Constructor: This variant creates an empty list

Since:
1.0

MsgQueue.MsgListNode

public MsgQueue.MsgListNode(IMsg msg,
                            MsgQueue.MsgListNode next)

Constructor: Preferred version

Parameters:
msg - Message for this list node.
next - List to follow this node (may be null)
Since:
1.0

MsgQueue.MsgListNode

public MsgQueue.MsgListNode(MsgQueue.MsgListNode listToClone)

Clone list Constructor

Parameters:
listToClone - list to make a copy of
Since:
1.0
Method Detail

findTail

public MsgQueue.MsgListNode findTail()

Finds the tail of a list

Returns:
tail of list
Since:
1.0

append

public MsgQueue.MsgListNode append(IMsg msg)

Simple append function

Parameters:
msg - Message to be appended
Returns:
New added node
Since:
1.0

getData

public IMsg getData()

Accessor method for list element data

Returns:
m_Data
Since:
1.0

getNext

public MsgQueue.MsgListNode getNext()

Accessor method for list next element.

Returns:
m_Next
Since:
1.0