madkit.communicator
Class CodingModule

java.lang.Object
  extended by madkit.communicator.CodingModule

public class CodingModule
extends java.lang.Object


Field Summary
protected  byte CODE_DEFAULT
           
protected  AbstractAgent myAgent
           
 
Constructor Summary
CodingModule(AbstractAgent myAgent)
           
 
Method Summary
 java.lang.Object decode(byte[] rawobj)
           
 byte[] encode(java.lang.Object o, java.io.ByteArrayOutputStream byteout)
           
protected  byte[] encodeDefault(java.lang.Object o, java.io.ByteArrayOutputStream byteout)
           
 boolean shouldBeDefaultTreated(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CODE_DEFAULT

protected final byte CODE_DEFAULT
See Also:
Constant Field Values

myAgent

protected AbstractAgent myAgent
Constructor Detail

CodingModule

public CodingModule(AbstractAgent myAgent)
Method Detail

encode

public byte[] encode(java.lang.Object o,
                     java.io.ByteArrayOutputStream byteout)
              throws java.io.IOException
Throws:
java.io.IOException

encodeDefault

protected byte[] encodeDefault(java.lang.Object o,
                               java.io.ByteArrayOutputStream byteout)
                        throws java.io.IOException
Throws:
java.io.IOException

decode

public java.lang.Object decode(byte[] rawobj)
                        throws java.io.IOException
Throws:
java.io.IOException

shouldBeDefaultTreated

public boolean shouldBeDefaultTreated(java.lang.Object o)


Copyright © Madkit Team (O. Gutknecht, J. Ferber, F. Michel et al.) All Rights Reserved.