Class CommSnapShot

java.lang.Object
  |
  +--CommSnapShot
All Implemented Interfaces:
java.lang.Cloneable

public class CommSnapShot
extends java.lang.Object
implements java.lang.Cloneable

The class CommSnapShot contains the structure of a CommSnapShot object, these objects have been send.

Since:
present since version number 0
Version:
$Revision: 1.4 $
Author:
Hans Dollen, Wim Fikkert

Field Summary
 boolean bFoundBall
          found the ball?
 int iNrFoundOpponent
          the amount of opponents found
 int iNrFoundTeam
          the amount of teams found
 long lMicroSeconds
          the micro seconds
 long lNumber
          the number
 long lSeconds
          the seconds
 CommSnapShotObject[] oCommSnapShotObjects
          an array of CommSnapShotObject objects
 
Constructor Summary
CommSnapShot()
          This Constructor constructs an empty CommSnapShot object
CommSnapShot(CommSnapShotObject[] oCommSnapShotObjects, int iNrFoundTeam, int iNrFoundOpponent, boolean bFoundBall, long lSeconds, long lMicroSeconds, long lNumber)
          This Constructor constructs a CommSnapShot object
 
Method Summary
 void addSnapShotObject(CommSnapShotObject oCommSnapShotObject)
          This method adds a CommSnapShotObject object to the array of CommSnapShotObject objects
 java.lang.Object clone()
          implements the cloneable interface
 void mirror()
          Mirrors this snapshot in the length and width of the soccer field, needed for correct communication with the Mi20 control system
 java.lang.String toString()
          This method return a String which contains information about the CommSnapShot object, and the CommSnapShotObject objects it contains
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

oCommSnapShotObjects

public CommSnapShotObject[] oCommSnapShotObjects
an array of CommSnapShotObject objects

Since:
present since version number 0

iNrFoundTeam

public int iNrFoundTeam
the amount of teams found

Since:
present since version number 0

iNrFoundOpponent

public int iNrFoundOpponent
the amount of opponents found

Since:
present since version number 0

bFoundBall

public boolean bFoundBall
found the ball?

Since:
present since version number 0

lNumber

public long lNumber
the number

Since:
present since version number 0

lSeconds

public long lSeconds
the seconds

Since:
present since version number 0

lMicroSeconds

public long lMicroSeconds
the micro seconds

Since:
present since version number 0
Constructor Detail

CommSnapShot

public CommSnapShot()
This Constructor constructs an empty CommSnapShot object

Since:
present since version number 0

CommSnapShot

public CommSnapShot(CommSnapShotObject[] oCommSnapShotObjects,
                    int iNrFoundTeam,
                    int iNrFoundOpponent,
                    boolean bFoundBall,
                    long lSeconds,
                    long lMicroSeconds,
                    long lNumber)
This Constructor constructs a CommSnapShot object

Parameters:
oCommSnapShotObjects - the CommSnapShotObject objects
iNrFoundTeam - number of teams found
iNrFoundOpponent - number of opponents found
bFoundBall - ball found?
lSeconds - seconds
lMicroSeconds - micro seconds
lNumber - the number
Since:
present since version number 0
Method Detail

addSnapShotObject

public void addSnapShotObject(CommSnapShotObject oCommSnapShotObject)
This method adds a CommSnapShotObject object to the array of CommSnapShotObject objects

Returns:
void
Since:
present since version number 0
See Also:
CommSnapShotObject

mirror

public void mirror()
Mirrors this snapshot in the length and width of the soccer field, needed for correct communication with the Mi20 control system

Returns:
void
Since:
1.0

clone

public final java.lang.Object clone()
implements the cloneable interface

Overrides:
clone in class java.lang.Object
Returns:
Object cloned version of this comm snapshot
Since:
1.0

toString

public java.lang.String toString()
This method return a String which contains information about the CommSnapShot object, and the CommSnapShotObject objects it contains

Overrides:
toString in class java.lang.Object
Returns:
String
Since:
present since version number 0
See Also:
CommSnapShotObject.toString()