cz.cuni.amis.pogamut.defcon.communication.messages.infos
Class DefConChanged

Package class diagram package DefConChanged
java.lang.Object
  extended by cz.cuni.amis.pogamut.defcon.communication.messages.infos.DefConEvent
      extended by cz.cuni.amis.pogamut.defcon.communication.messages.infos.DefConChanged
All Implemented Interfaces:
IWorldChangeEvent, IWorldEvent, cz.cuni.amis.utils.listener.Event, IDefConBasicEvent

public class DefConChanged
extends DefConEvent

Informs about change in defcon.


Constructor Summary
DefConChanged(int oldDefCon, int newDefCon, double time)
          Creates new instance of message DefConChanged.
 
Method Summary
 int getNewDefCon()
          New defcon.
 int getOldDefCon()
          Old defcon.
 String toHtmlString()
          Returns message in html format.
 String toString()
          Returns human readable serialization of the message.
 
Methods inherited from class cz.cuni.amis.pogamut.defcon.communication.messages.infos.DefConEvent
getSimTime, getStringizedFields, getTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefConChanged

public DefConChanged(int oldDefCon,
                     int newDefCon,
                     double time)
Creates new instance of message DefConChanged. Informs about change in defcon.

Parameters:
oldDefCon - Old defcon.
newDefCon - New defcon.
time -
Method Detail

getOldDefCon

public int getOldDefCon()
Old defcon.

Returns:
int

getNewDefCon

public int getNewDefCon()
New defcon.

Returns:
int

toString

public String toString()
Returns human readable serialization of the message.

Overrides:
toString in class Object
Returns:
human readable string

toHtmlString

public String toHtmlString()
Returns message in html format.

Returns:
html message


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.