Inheritance diagram for tit.observation.behaviour.Behaviour:
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 |
tit.observation.behaviour.Behaviour.Behaviour | ( | long | timeinit | ) |
Constructs a new Behaviour
-object.
timeinit | The time on wich this behaviour is recorded. |
tit.observation.behaviour.Behaviour.Behaviour | ( | Behaviour | taketimefrom | ) |
Constructs a new Behaviour
-object.
taketimefrom | The Bahaviour -object from which this behaviour's time is taken. |
abstract void tit.observation.behaviour.Behaviour.reproduceBehaviour | ( | Observation | observation | ) | throws ObservationInIllegalStateException, ObservationsInWrongOrderException [pure virtual] |
Reproduces this behaviour on observation
.
observation | The Observation on which this behaviour is reproduced. |
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;
newtime | The new time. |
long tit.observation.behaviour.Behaviour.getTime | ( | ) |
Gets the time.
int tit.observation.behaviour.Behaviour.compareTo | ( | Behaviour | other | ) |
boolean tit.observation.behaviour.Behaviour.equals | ( | Object | other | ) |
Checks whether this Behaviour
equals another.
other | The Objsect to which this object is compared to. |
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
.
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.
nameorcode | The name or code of the behaviour. | |
taketimefrom | The Behaviour from which the new behaviour's name is taken. |
static Behaviour tit.observation.behaviour.Behaviour.createBehaviour | ( | String | nameorcode, | |
long | time | |||
) | [static] |
Creates a new behaviour.
nameorcode | The name or code of the behaviour. | |
time | The time on which the behaviour is recorded. |
long tit.observation.behaviour.Behaviour.time [private] |
The time on which this behaviour was recorded.