Class AudioInfo

java.lang.Object
  |
  +--AudioInfo

public class AudioInfo
extends java.lang.Object

This class is used to represent all messages heared by one player. For every object the following information is stored:

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

Field Summary
private  int direction
           
private  boolean fromDirection
           
private  boolean fromReferee
           
private  boolean fromSelf
           
private  java.lang.String message
           
private  int time
           
 
Constructor Summary
(package private) AudioInfo(int time, java.lang.String message, boolean fromSelf, boolean fromReferee, boolean fromDirection, int direction)
           
 
Method Summary
 int getDirection()
          gets the direction where the message came from
 boolean getFromDirection()
          gets the info if the sender of the message was not identified
 boolean getFromReferee()
          gets the info if the sender of the message was referee
 boolean getFromSelf()
          gets the info if the sender of the message was self
 java.lang.String getMessage()
          gets the message
 int getTime()
          gets the time when the message was heared
 void print()
          prints the audio information usefull for debugging
 void setDirection(int direction)
          sets the direction where the message came from
 void setFromDirection(boolean fromDirection)
          sets the sender of the message on direction
 void setFromReferee(boolean fromReferee)
          sets the sender of the message on referee
 void setFromSelf(boolean fromSelf)
          sets the sender of the message on self
 void setMessage(java.lang.String message)
          sets the message
 void setTime(int time)
          sets the time when the message was heared
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

time

private int time

fromSelf

private boolean fromSelf

fromReferee

private boolean fromReferee

fromDirection

private boolean fromDirection

direction

private int direction

message

private java.lang.String message
Constructor Detail

AudioInfo

AudioInfo(int time,
          java.lang.String message,
          boolean fromSelf,
          boolean fromReferee,
          boolean fromDirection,
          int direction)
Method Detail

setTime

public void setTime(int time)
sets the time when the message was heared

getTime

public int getTime()
gets the time when the message was heared

setFromSelf

public void setFromSelf(boolean fromSelf)
sets the sender of the message on self

getFromSelf

public boolean getFromSelf()
gets the info if the sender of the message was self

setFromReferee

public void setFromReferee(boolean fromReferee)
sets the sender of the message on referee

getFromReferee

public boolean getFromReferee()
gets the info if the sender of the message was referee

setFromDirection

public void setFromDirection(boolean fromDirection)
sets the sender of the message on direction

getFromDirection

public boolean getFromDirection()
gets the info if the sender of the message was not identified

setDirection

public void setDirection(int direction)
sets the direction where the message came from

getDirection

public int getDirection()
gets the direction where the message came from

getMessage

public java.lang.String getMessage()
gets the message

setMessage

public void setMessage(java.lang.String message)
sets the message

print

public void print()
prints the audio information usefull for debugging