org.jadv.events
Class ObjectMessageEvent

java.lang.Object
  |
  +--org.jadv.events.Event
        |
        +--org.jadv.events.ObjectMessageEvent

public class ObjectMessageEvent
extends Event

A Message is sent to an object

Author:
neitzel

Field Summary
private  java.lang.String _msg
           
private  AcceptEvents _obj
           
private  java.lang.String _senderID
           
private  byte _type
           
 
Fields inherited from class org.jadv.events.Event
_NEXT
 
Constructor Summary
ObjectMessageEvent(AcceptEvents target, java.lang.String senderid, java.lang.String msg, byte type)
          Constructor
 
Method Summary
 void doEvent()
          Give this event to the target object
 java.lang.String getMessage()
          Get the Message
 java.lang.String getSenderID()
          Get the ID of the sender
 byte getType()
          Get the Type of the Message
 void markBad()
          markBad() Mark an Event as bad.
 
Methods inherited from class org.jadv.events.Event
findObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_obj

private AcceptEvents _obj

_senderID

private java.lang.String _senderID

_msg

private java.lang.String _msg

_type

private byte _type
Constructor Detail

ObjectMessageEvent

public ObjectMessageEvent(AcceptEvents target,
                          java.lang.String senderid,
                          java.lang.String msg,
                          byte type)
Constructor

Parameters:
target - the target of this Event
senderid - the id of the sender
msg - the message
type - the type
Method Detail

getSenderID

public java.lang.String getSenderID()
Get the ID of the sender

Returns:
id of sender

getMessage

public java.lang.String getMessage()
Get the Message

Returns:
the message

getType

public byte getType()
Get the Type of the Message

Returns:
type of Message

doEvent

public void doEvent()
Give this event to the target object

Specified by:
doEvent in class Event
See Also:
Event.doEvent()

markBad

public void markBad()
Description copied from class: Event
markBad() Mark an Event as bad. This means: This event wasn't finished in time. If possible, something should be done (e.g. turning the Hearbeat of an Object off, Stop a timer, ... Maybe writing some Message to the developer!

Specified by:
markBad in class Event
See Also:
Event.markBad()