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

java.lang.Object
  extended by universe.Bundle<Msg>

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

Represents the result of a Universe function where the universe is updated, messages are sent to registered Worlds, and Worlds are marked for removal from the universe.


Constructor Summary
Bundle(Universe<Msg> univ)
          Create a Bundle without any Mail/Worlds to remove
Bundle(Universe<Msg> univ, List<Mail<Msg>> mails)
          Create a Bundle with a list of Mail messages but no Worlds to remove
Bundle(Universe<Msg> univ, List<Mail<Msg>> mails, List<IWorld> worlds)
          Create a Bundle with a list of Mail messages and ask that the given Worlds be removed
Bundle(Universe<Msg> univ, Mail<Msg>... mails)
          Create a Bundle with Mail messages but no Worlds to remove
Bundle(Universe<Msg> univ, Mail<Msg> mail)
          Create a Bundle with Mail messages but no Worlds to remove
 
Method Summary
 List<Mail<Msg>> getMails()
          Get the list of Mail messages
 Universe<Msg> getUniverse()
          Get the Universe state
 List<IWorld> getWorlds()
          Get the worlds to be removed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bundle

public Bundle(Universe<Msg> univ)
Create a Bundle without any Mail/Worlds to remove


Bundle

public Bundle(Universe<Msg> univ,
              Mail<Msg> mail)
Create a Bundle with Mail messages but no Worlds to remove


Bundle

public Bundle(Universe<Msg> univ,
              Mail<Msg>... mails)
Create a Bundle with Mail messages but no Worlds to remove


Bundle

public Bundle(Universe<Msg> univ,
              List<Mail<Msg>> mails)
Create a Bundle with a list of Mail messages but no Worlds to remove


Bundle

public Bundle(Universe<Msg> univ,
              List<Mail<Msg>> mails,
              List<IWorld> worlds)
Create a Bundle with a list of Mail messages and ask that the given Worlds be removed

Method Detail

getUniverse

public Universe<Msg> getUniverse()
Get the Universe state


getMails

public List<Mail<Msg>> getMails()
Get the list of Mail messages


getWorlds

public List<IWorld> getWorlds()
Get the worlds to be removed