datapacket
Class DataPacketAlgo<R,P>

java.lang.Object
  extended by extvisitor.AExtVisitor<R,java.lang.Class<?>,P,ADataPacket>
      extended by datapacket.DataPacketAlgo<R,P>
Type Parameters:
R - The return type of the visitor
P - The vararg input parameter type of the visitor
All Implemented Interfaces:
IExtVisitor<R,java.lang.Class<?>,P,ADataPacket>, java.io.Serializable

public class DataPacketAlgo<R,P>
extends AExtVisitor<R,java.lang.Class<?>,P,ADataPacket>

Concrete visitor for processing an abstract data packet. For convenience and increased type safety, the commands used by this visitor should be subclasses of ADataPacketAlgoCmd<R, D, P>, where D is the type of the data that particular command processes, i.e. the defining type of its associated DataPacket<D> host.

Author:
Stephen Wong (c) 2010
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Constructor Summary
DataPacketAlgo(ADataPacketAlgoCmd<R,java.lang.Object,P> defaultCmd)
          Constructor for the class.
 
Method Summary
 
Methods inherited from class extvisitor.AExtVisitor
caseAt, getCmd, getDefaultCmd, setCmd, setDefaultCmd
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

DataPacketAlgo

public DataPacketAlgo(ADataPacketAlgoCmd<R,java.lang.Object,P> defaultCmd)
Constructor for the class.

Parameters:
defaultCmd - The default command to be used. See the main class documentation for usage suggestions.