tit.observation.behaviour.Behaviour Class Reference

Inheritance diagram for tit.observation.behaviour.Behaviour:

tit.observation.behaviour.Billwipe tit.observation.behaviour.Boink tit.observation.behaviour.DoorOrWindow tit.observation.behaviour.Floor tit.observation.behaviour.Fly tit.observation.behaviour.Hop tit.observation.behaviour.OtherLocation tit.observation.behaviour.PeckRing tit.observation.behaviour.Preen tit.observation.behaviour.Tree1 tit.observation.behaviour.Tree2 tit.observation.behaviour.Tree3 tit.observation.behaviour.Tree4 tit.observation.behaviour.Tree5 tit.observation.behaviour.Wall1 tit.observation.behaviour.Wall2 tit.observation.behaviour.Wall3 tit.observation.behaviour.Wall4 List of all members.

Public Member Functions

abstract void reproduceBehaviour (Observation observation) throws ObservationInIllegalStateException, ObservationsInWrongOrderException
 Behaviour (long timeinit)
 Behaviour (Behaviour taketimefrom)
void setTime (long newtime)
long getTime ()
int compareTo (Behaviour other)
boolean equals (Object other)
abstract String toString ()

Static Public Member Functions

static Behaviour createBehaviour (String nameorcode, Behaviour taketimefrom)
static Behaviour createBehaviour (String nameorcode, long time)

Private Attributes

long time

Detailed Description

Base-class for all kinds of behaviour.
Author:
Bart Sas


Constructor & Destructor Documentation

tit.observation.behaviour.Behaviour.Behaviour ( long  timeinit  ) 

Constructs a new Behaviour-object.

Parameters:
timeinit The time on wich this behaviour is recorded.

tit.observation.behaviour.Behaviour.Behaviour ( Behaviour  taketimefrom  ) 

Constructs a new Behaviour-object.

Parameters:
taketimefrom The Bahaviour-object from which this behaviour's time is taken.


Member Function Documentation

abstract void tit.observation.behaviour.Behaviour.reproduceBehaviour ( Observation  observation  )  throws ObservationInIllegalStateException, ObservationsInWrongOrderException [pure virtual]

Reproduces this behaviour on observation.

Parameters:
observation The Observation on which this behaviour is reproduced.
Exceptions:
ObservationInIllegalStateException Can be thrown by the observation.
ObservationsInWrongOrderException Can be thrown by the observation.

Implemented in tit.observation.behaviour.Billwipe, tit.observation.behaviour.Boink, tit.observation.behaviour.DoorOrWindow, tit.observation.behaviour.Floor, tit.observation.behaviour.Fly, tit.observation.behaviour.Hop, tit.observation.behaviour.OtherLocation, tit.observation.behaviour.PeckRing, tit.observation.behaviour.Preen, tit.observation.behaviour.Tree1, tit.observation.behaviour.Tree2, tit.observation.behaviour.Tree3, tit.observation.behaviour.Tree4, tit.observation.behaviour.Tree5, tit.observation.behaviour.Wall1, tit.observation.behaviour.Wall2, tit.observation.behaviour.Wall3, and tit.observation.behaviour.Wall4.

void tit.observation.behaviour.Behaviour.setTime ( long  newtime  ) 

Sets the time;

Parameters:
newtime The new time.

long tit.observation.behaviour.Behaviour.getTime (  ) 

Gets the time.

Returns:
The time.

int tit.observation.behaviour.Behaviour.compareTo ( Behaviour  other  ) 

Compares this object with other.

Parameters:
other The Behaviour to which this Behaviour is compared.
Returns:
-1 if this.time < other.time, +1 if this.time > other.time and 0 if this.time == other.time.

boolean tit.observation.behaviour.Behaviour.equals ( Object  other  ) 

Checks whether this Behaviour equals another.

Parameters:
other The Objsect to which this object is compared to.
Returns:
true if this Behaviour equals other, false otherwise.

Reimplemented in tit.observation.behaviour.Billwipe, tit.observation.behaviour.Boink, tit.observation.behaviour.DoorOrWindow, tit.observation.behaviour.Floor, tit.observation.behaviour.Fly, tit.observation.behaviour.Hop, tit.observation.behaviour.OtherLocation, tit.observation.behaviour.PeckRing, tit.observation.behaviour.Preen, tit.observation.behaviour.Tree1, tit.observation.behaviour.Tree2, tit.observation.behaviour.Tree3, tit.observation.behaviour.Tree4, tit.observation.behaviour.Tree5, tit.observation.behaviour.Wall1, tit.observation.behaviour.Wall2, tit.observation.behaviour.Wall3, and tit.observation.behaviour.Wall4.

abstract String tit.observation.behaviour.Behaviour.toString (  )  [pure virtual]

Forces this class's subclasses to overrhide the toString()-method of Object.

Returns:
The name of this behaviour.

Implemented in tit.observation.behaviour.Billwipe, tit.observation.behaviour.Boink, tit.observation.behaviour.DoorOrWindow, tit.observation.behaviour.Floor, tit.observation.behaviour.Fly, tit.observation.behaviour.Hop, tit.observation.behaviour.OtherLocation, tit.observation.behaviour.PeckRing, tit.observation.behaviour.Preen, tit.observation.behaviour.Tree1, tit.observation.behaviour.Tree2, tit.observation.behaviour.Tree3, tit.observation.behaviour.Tree4, tit.observation.behaviour.Tree5, tit.observation.behaviour.Wall1, tit.observation.behaviour.Wall2, tit.observation.behaviour.Wall3, and tit.observation.behaviour.Wall4.

static Behaviour tit.observation.behaviour.Behaviour.createBehaviour ( String  nameorcode,
Behaviour  taketimefrom 
) [static]

Creates a new behaviour.

Parameters:
nameorcode The name or code of the behaviour.
taketimefrom The Behaviour from which the new behaviour's name is taken.
Returns:
The new behaviour.

static Behaviour tit.observation.behaviour.Behaviour.createBehaviour ( String  nameorcode,
long  time 
) [static]

Creates a new behaviour.

Parameters:
nameorcode The name or code of the behaviour.
time The time on which the behaviour is recorded.
Returns:
The new behaviour.


Member Data Documentation

long tit.observation.behaviour.Behaviour.time [private]

The time on which this behaviour was recorded.


The documentation for this class was generated from the following file:
Generated on Sun Jun 3 16:44:00 2007 by  doxygen 1.5.1