april  1.0.0
...
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages

module_name is part of the command interface for april library.



dna.ak

The actors created based on this DNA will all attempt to create for themselves a actuator of this kind.

Usage

dna.ak <kind> <id> add a actuator to a DNA sequence
dna.ak helpprints usage instructions

Options

kindA kind previously registered using dna.new (id)
idThe id of the actuator to add; this id must be valid (the function checks it before proceeding)



dna.b

The actors created based on this DNA will all attempt to create for themselves a brain of this kind. Note that there is nothing stpping an actor to have more than one brains.

Usage

dna.b <kind> <id> add a brain to a DNA sequence
dna.b helpprints usage instructions

Options

kindA kind previously registered using dna.new (id)
idThe id of the brain to add; this id must be valid (the function checks it before proceeding)



dna.info

The function provides a lot of details about the DNA for a certain kind. This includes:

  • id and name
  • running cost for the actor
  • ammount of energy at birth
  • list of brains, reflexes, sensors and actuators
  • the list of partitions and details about them

Usage

dna.info <id> detalied information about a kind
dna.info helpprints usage instructions

Options

idAn id previously registered using dna.new



dna.list

These are the IDs that are available for a.new command.

Usage

dna.list lists available kinds in this world
dna.list helpprints usage instructions



dna.new

Usage

dna.new [id] [cost] [age] [energy]creates a new kind
dna.new helpprints usage instructions

Options

idthe name to assign to the new numeric ID that will be generated. If ommited, a new, unique name will be generated. A form like this is recomended: Actor.Kind.<name> .
costthe intrinsec energy cost for the agent per time unit; other components that are added will increase the total cost for running the agent.n This value must be an integer larger than 0. By default the cost is set to 10.
ageaverage age of death. This is an orientative value (suggestion). It must be larger than 0. By default it is set to 100.
energyenergy required at birth. At least this ammount of energy units are assigned at birt to an agent of this kind. When the user creates the agent, the energy is substracted from the free energy of the world. By default it is set to 10.



dna.r

The actors created based on this DNA will all attempt to create for themselves a reflex of this kind.

Usage

dna.r <kind> <id> add a reflex to a DNA sequence
dna.r helpprints usage instructions

Options

kindA kind previously registered using dna.new (id)
idThe id of the reflex to add; this id must be valid (the function checks it before proceeding)



dna.s

The actors created based on this DNA will all attempt to create for themselves a sensor of this kind.

Usage

dna.s <kind> <id> add a sensor to a DNA sequence
dna.s helpprints usage instructions

Options

kindA kind previously registered using dna.new (id)
idThe id of the sensor to add; this id must be valid (the function checks it before proceeding)




World april-cmd library Actor