module_name is part of the command interface for april library.
The actors created based on this DNA will all attempt to create for themselves a actuator of this kind.
dna.ak <kind> <id> | add a actuator to a DNA sequence |
dna.ak help | prints usage instructions |
kind | A kind previously registered using dna.new (id) |
id | The id of the actuator to add; this id must be valid (the function checks it before proceeding) |
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.
dna.b <kind> <id> | add a brain to a DNA sequence |
dna.b help | prints usage instructions |
kind | A kind previously registered using dna.new (id) |
id | The id of the brain to add; this id must be valid (the function checks it before proceeding) |
The function provides a lot of details about the DNA for a certain kind. This includes:
dna.info <id> | detalied information about a kind |
dna.info help | prints usage instructions |
id | An id previously registered using dna.new |
These are the IDs that are available for a.new command.
dna.list | lists available kinds in this world |
dna.list help | prints usage instructions |
dna.new [id] [cost] [age] [energy] | creates a new kind |
dna.new help | prints usage instructions |
id | the 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> . |
cost | the 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. |
age | average age of death. This is an orientative value (suggestion). It must be larger than 0. By default it is set to 100. |
energy | energy 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. |
The actors created based on this DNA will all attempt to create for themselves a reflex of this kind.
dna.r <kind> <id> | add a reflex to a DNA sequence |
dna.r help | prints usage instructions |
kind | A kind previously registered using dna.new (id) |
id | The id of the reflex to add; this id must be valid (the function checks it before proceeding) |
The actors created based on this DNA will all attempt to create for themselves a sensor of this kind.
dna.s <kind> <id> | add a sensor to a DNA sequence |
dna.s help | prints usage instructions |
kind | A kind previously registered using dna.new (id) |
id | The id of the sensor to add; this id must be valid (the function checks it before proceeding) |
World | april-cmd library | Actor |