Next / Previous / Contents / Shipman's homepage

16. class Sighting: Single sighting

An instance of this class represents a sighting of one or more birds that share locality, age, sex, or other details. Public attributes:

.birdForm

The kind of bird as an instance of Section 13, “class BirdForm: Records for one kind of bird”.

.locGroup

If the instance has any locality information attached to it, this attribute contains that information as an instance of Section 14, “class LocGroup: Inheritable locality data”.

.ageSexGroup

If the instance specifies any of the content described in Section 5.10, “The age-sex-group attributes”, this attribute will be an instance of Section 17, “class AgeSexGroup: Age and sex details”, otherwise None.

.sightNotes

If the instance has any of the sighting data described in Section 5.12, “The sighting-notes elements”, this attribute will be an instance of Section 15, “class SightNotes: Sighting notes”, otherwise None.

16.1. Sighting.getLocGroup()

To retrieve the locality information of a Sighting instance S:

S.getLocGroup()

The result is returned as an instance of Section 14, “class LocGroup: Inheritable locality data”.