edu.vub.at.actors.natives
Class Packet
java.lang.Object
edu.vub.at.actors.natives.Packet
- All Implemented Interfaces:
- java.io.Serializable
- public class Packet
- extends java.lang.Object
- implements java.io.Serializable
Packet instances are the serialized representation of AmbientTalk messages or other objects.
They are exchanged directly in between local actors and in a wrapped VMCommand object between
remote actors.
- Author:
- tvcutsem
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
payload_
private final byte[] payload_
description_
private final java.lang.String description_
Packet
public Packet(java.lang.String description,
ATObject object)
throws XIOProblem
Packet
public Packet(ATObject object)
throws XIOProblem
unpack
public ATObject unpack()
throws XIOProblem,
XClassNotFound
- Throws:
XIOProblem
XClassNotFound
toString
public java.lang.String toString()
serialize
private static byte[] serialize(java.lang.Object o)
throws java.io.IOException
- Throws:
java.io.IOException
deserialize
private static java.lang.Object deserialize(byte[] b)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException