Class VisualEvent

java.lang.Object
  |
  +--Event
        |
        +--VisualEvent

public class VisualEvent
extends Event

This class parses all messages regarding visual information of the game, i.e. the see messages, and represents the information in a list of ObjectInfo

Version:
1.1
Author:
Gerald Kuehne, Markus Beier

Field Summary
private  java.util.Vector objectPerceptionList
          List for the objects contained in an event e.g.
 
Constructor Summary
VisualEvent(java.lang.String message)
          Creates a new VisualEvent instance, extracts the information contained and stores it in a list of ObjectPerception
 
Method Summary
 void add(ObjectPerception objectPerception)
          adds an element to the list of perceived objects to the internal list
 java.util.Enumeration elements()
          return the perceived objects
 boolean isVisualEvent()
          indicates that the event is of type VisualEvent
 
Methods inherited from class Event
isBodyEvent
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

objectPerceptionList

private java.util.Vector objectPerceptionList
List for the objects contained in an event e.g. a see message contains flags, players, the ball etc.
See Also:
ObjectPerception
Constructor Detail

VisualEvent

public VisualEvent(java.lang.String message)
Creates a new VisualEvent instance, extracts the information contained and stores it in a list of ObjectPerception
Parameters:
message - a String value which contains the see message of the rcssserver to be parsed and stored in the instance
See Also:
ObjectPerception
Method Detail

elements

public java.util.Enumeration elements()
return the perceived objects
Returns:
an Enumeration containing the perceived and processed ObjectPerception objects
See Also:
ObjectPerception

add

public void add(ObjectPerception objectPerception)
adds an element to the list of perceived objects to the internal list
Parameters:
objectPerception - an ObjectPerception value containing the processed data of the object

isVisualEvent

public boolean isVisualEvent()
indicates that the event is of type VisualEvent
Overrides:
isVisualEvent in class Event
Returns:
a boolean value indicating that this event is a VisualEvent