Class AudioEvent

java.lang.Object
  |
  +--Event
        |
        +--AudioEvent
All Implemented Interfaces:
DebugInterface, PlayModeInterface

public class AudioEvent
extends Event
implements DebugInterface, PlayModeInterface

This class is used as an indicator that a hear message was was received.

Version:
1.00
Author:
Daniel Förderer and Moritz Steiner

Fields inherited from interface DebugInterface
DEBUG_SWITCH_STRATEGY_IS_SET, DEBUG_SWITCH_VISUALISATION_IS_SET, DEBUG_SWITCH_WORLDMODEL_AUDIOEVENT_IS_SET, DEBUG_SWITCH_WORLDMODEL_BODYEVENT_IS_SET, DEBUG_SWITCH_WORLDMODEL_VISUALEVENT_IS_SET
 
Fields inherited from interface PlayModeInterface
PLAYMODE_BEFORE_KICK_OFF, PLAYMODE_EXTEND, PLAYMODE_HALF_TIME, PLAYMODE_OPPONENTS_CORNER_KICK, PLAYMODE_OPPONENTS_FOUL, PLAYMODE_OPPONENTS_FREE_KICK, PLAYMODE_OPPONENTS_GOAL, PLAYMODE_OPPONENTS_GOAL_KICK, PLAYMODE_OPPONENTS_GOALIE_CATCH, PLAYMODE_OPPONENTS_KICK_IN, PLAYMODE_OPPONENTS_KICK_OFF, PLAYMODE_OPPONENTS_OFFSIDE, PLAYMODE_OUR_CORNER_KICK, PLAYMODE_OUR_FOUL, PLAYMODE_OUR_FREE_KICK, PLAYMODE_OUR_GOAL, PLAYMODE_OUR_GOAL_KICK, PLAYMODE_OUR_GOALIE_CATCH, PLAYMODE_OUR_KICK_IN, PLAYMODE_OUR_KICK_OFF, PLAYMODE_OUR_OFFSIDE, PLAYMODE_PLAY_ON, PLAYMODE_TIME_UP, PLAYMODES
 
Constructor Summary
AudioEvent(java.lang.String message, AgentInfo agentInfo)
          constructor that also starts the parsing of the message
 
Method Summary
 boolean isAudioEvent()
          indicates that the event is of type AudioEvent
private  void parse(java.lang.String message, AgentInfo agentInfo)
          Takes a 'hear' message from the server and parses the information it contains into AgentInfo.Own.AudioInfo
 
Methods inherited from class Event
isBodyEvent, isVisualEvent
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

AudioEvent

public AudioEvent(java.lang.String message,
                  AgentInfo agentInfo)
constructor that also starts the parsing of the message
Method Detail

isAudioEvent

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

parse

private void parse(java.lang.String message,
                   AgentInfo agentInfo)
Takes a 'hear' message from the server and parses the information it contains into AgentInfo.Own.AudioInfo