universe.control
Class Message

java.lang.Object
  extended by universe.control.Message
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Connect, Disconnect, Transfer, WithWorld

public abstract class Message
extends java.lang.Object
implements java.io.Serializable

Represents a Message between World and Universe

See Also:
Serialized Form

Method Summary
 long from()
          Get the name of the World/sender
 boolean isConnect()
          Is this a Connect Message?
 boolean isDisconnect()
          Is this a Disconnect Message?
 boolean isTransfer()
          Is this a Transfer Message?
<R> R
payload()
          Get the message's payload/content
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isConnect

public boolean isConnect()
Is this a Connect Message?


isDisconnect

public boolean isDisconnect()
Is this a Disconnect Message?


isTransfer

public boolean isTransfer()
Is this a Transfer Message?


from

public long from()
Get the name of the World/sender


payload

public <R> R payload()
Get the message's payload/content