universe
Class Package<Msg extends java.io.Serializable>

java.lang.Object
  extended by universe.Package<Msg>
Direct Known Subclasses:
VoidPackage

public class Package<Msg extends java.io.Serializable>
extends java.lang.Object

Represents the results of World functions with a possible message to the connected Universe.


Constructor Summary
Package(World<Msg> w)
          Construct a Package with the given state of the World.
Package(World<Msg> w, Msg m)
          Construct a Package with the given state of the World and a message to the Universe.
 
Method Summary
 Msg getMsg()
          Get the message associated with this Package/World
 World<Msg> getWorld()
          Access the current state of the World within this Package
 boolean hasMsg()
          Does this Package contain a message?
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Package

public Package(World<Msg> w)
Construct a Package with the given state of the World.


Package

public Package(World<Msg> w,
               Msg m)
Construct a Package with the given state of the World and a message to the Universe.

Method Detail

getWorld

public World<Msg> getWorld()
Access the current state of the World within this Package


hasMsg

public boolean hasMsg()
Does this Package contain a message?


getMsg

public Msg getMsg()
Get the message associated with this Package/World