Populations class in Global context

Manages all Creature objects in the experiment, organized in one or more groups. See also: Creature, Population

14 members:

integer creature
integer

selected creature

integer group
integer

selected group

integer size
integer

Number of groups

function addGroup
doesn't return a value

function addGroup(string name)

add population

function clear
doesn't return a value

function clear()

remove all populations except the first one

function clearGroup
doesn't return a value

function clearGroup(integer index)
function creatBBCollisions
returns integer

function creatBBCollisions(integer mask)

Checks approximate collisions for the selected creature.
Returns the collision mask calculated as in the regular simulation. The argument is the collision mask substituted for the selected creature (defaults to group colmask for 0)

function createFromGenotype
returns Creature

function createFromGenotype()

uses the selected Genotype object

function createFromString
returns Creature

function createFromString(string genotype)

uses the supplied string argument

function deleteGroup
doesn't return a value

function deleteGroup(integer index)

remove population

function deleteSelected
doesn't return a value

function deleteSelected()

applies to the selected Creature

function findCreatureAt
returns Creature

function findCreatureAt(Vector point, Vector vector)
function get
returns Population

function get(integer index)
function killSelected
doesn't return a value

function killSelected()

applies to the selected Creature


Global context