Ps-i 2.0 - attributes

General description

An attribute is a quality of a particular agent. It can be expressed as a number, a true/false value or something more comlex.

Section format

The following is an example describing attribute "influence":
attribute "influence"
	type int
	smallest 0
	largest 1000
	default 1
end
As you can see the attribute section starts with the keyword attribute that is followed by the name of this particular attribute. Then we see a series of keywords followed by parameters. The section is completed with keyword end.

The following keywords are available:

More examples

attribute "immutable"
	type bool
	default false
end

attribute "cache"
	type repertoire
	walk
	size 20
	bias_max 2
	bias_min -2
	bias_vol  500
	default empty
end

Related

See also About Ps-i 2.0, Agent classes.