|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object universe.Package<Msg>
public class Package<Msg extends java.io.Serializable>
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 |
---|
public Package(World<Msg> w)
public Package(World<Msg> w, Msg m)
Method Detail |
---|
public World<Msg> getWorld()
public boolean hasMsg()
public Msg getMsg()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |