Major class of iDynoMiCS - defines the agents that are involved in an iDynoMiCS simulation. Extended by a number of agent types. More...
Public Member Functions | |
Agent () | |
Initialise an agent object, setting its time of creation and thus the time it was last stepped. More... | |
void | initFromProtocolFile (Simulator aSimulator, XMLParser aSpeciesRoot) |
Initialise the agent from the protocol file. Implemented by classes that extend this class. More... | |
void | initFromResultFile (Simulator aSim, String[] singleAgentData) |
Create an agent using information in a previous state or initialisation file. More... | |
void | mutateAgent () |
Mutates agent parameters. Implemented by classes that extend this class. More... | |
void | makeKid () throws CloneNotSupportedException |
Creates a new agent from an existing one, and registers this new agent in the simulation. More... | |
Object | clone () throws CloneNotSupportedException |
Clones this agent object, creating a new progeny of this agent. More... | |
abstract void | registerBirth () |
Registers a created agent into a respective container. Each agent must be referenced by one such container. Implemented by classes that extend Agent. More... | |
void | step () |
Perform the next timestep of the simulation for this agent. More... | |
String | sendHeader () |
Used in creation of results files - specifies the header of the columns of output information for this agent. More... | |
String | writeOutput () |
Used in creation of results files - creates an output string of information generated on this particular agent. More... | |
String | sendName () |
Returns a string containing the family name and genealogy of this agent. More... | |
void | giveName () |
Set the family for this agent, based on the next family. More... | |
Protected Member Functions | |
abstract void | internalStep () |
Called at each time step (under the control of the method Step of the class Agent to avoid multiple calls) More... | |
void | recordGenealogy (Agent baby) |
Called when creating an agent : updates _generation and _genealogy field. More... | |
Protected Attributes | |
int | _lastStep |
int | _generation = 0 |
long | _genealogy = 0 |
int | _family = 0 |
double | _birthday |
Static Protected Attributes | |
static int | nextFamily = 0 |
Major class of iDynoMiCS - defines the agents that are involved in an iDynoMiCS simulation. Extended by a number of agent types.
Major class of iDynoMiCS - defines the agents that are involved in an iDynoMiCS simulation. Extended by a number of agent types
simulator.agent.Agent.Agent | ( | ) |
Initialise an agent object, setting its time of creation and thus the time it was last stepped.
Initialise an agent object, setting its time of creation and thus the time it was last stepped
Object simulator.agent.Agent.clone | ( | ) | throws CloneNotSupportedException |
Clones this agent object, creating a new progeny of this agent.
Clones this agent object, creating a new progeny of this agent
CloneNotSupportedException | Exception should the class not implement Cloneable |
void simulator.agent.Agent.giveName | ( | ) |
Set the family for this agent, based on the next family.
Set the family for this agent, based on the next family
Initialise the agent from the protocol file. Implemented by classes that extend this class.
Initialise the agent from the protocol file. Implemented by classes that extend this class
aSimulator | The simulation object used to simulate the conditions specified in the protocol file |
aSpeciesRoot | A Species mark-up within the specified protocol file |
void simulator.agent.Agent.initFromResultFile | ( | Simulator | aSim, |
String[] | singleAgentData | ||
) |
Create an agent using information in a previous state or initialisation file.
Create an agent using information in a previous state or initialisation file
aSim | The simulation object used to simulate the conditions specified in the protocol file |
singleAgentData | Data from the result or initialisation file that is used to recreate this agent |
|
protectedpure virtual |
Called at each time step (under the control of the method Step of the class Agent to avoid multiple calls)
Called at each time step (under the control of the method Step of the class Agent to avoid multiple calls). Implemented by classes that extend Agent
Implemented in simulator.agent.ActiveAgent, simulator.agent.LocatedAgent, simulator.agent.zoo.Bacterium, simulator.agent.zoo.ParticulateEPS, simulator.agent.zoo.MultiEpisome, simulator.agent.zoo.Episome, simulator.agent.zoo.BactAdaptable, simulator.agent.zoo.BactEPS, and simulator.agent.InfoAgent.
void simulator.agent.Agent.makeKid | ( | ) | throws CloneNotSupportedException |
Creates a new agent from an existing one, and registers this new agent in the simulation.
Creates a new agent from an existing one, and registers this new agent in the simulation
CloneNotSupportedException | Exception should the class not implement Cloneable |
void simulator.agent.Agent.mutateAgent | ( | ) |
Mutates agent parameters. Implemented by classes that extend this class.
Implemented by classes that extend this class
|
protected |
Called when creating an agent : updates _generation and _genealogy field.
Called when creating an agent : updates _generation and _genealogy field
baby | The newly created agent that is the next generation of this agent |
|
pure virtual |
Registers a created agent into a respective container. Each agent must be referenced by one such container. Implemented by classes that extend Agent.
Registers a created agent into a respective container. Each agent must be referenced by one such container. Implemented by classes that extend Agent
Implemented in simulator.agent.ActiveAgent, simulator.agent.LocatedAgent, simulator.agent.zoo.MultiEpisome, simulator.agent.zoo.Episome, and simulator.agent.SpecialisedAgent.
String simulator.agent.Agent.sendHeader | ( | ) |
Used in creation of results files - specifies the header of the columns of output information for this agent.
Used in creation of results files - specifies the header of the columns of output information for this agent
String simulator.agent.Agent.sendName | ( | ) |
Returns a string containing the family name and genealogy of this agent.
Returns a string containing the family name and genealogy of this agent
void simulator.agent.Agent.step | ( | ) |
Perform the next timestep of the simulation for this agent.
Perform the next timestep of the simulation for this agent. _lastStep is implemented to note that the agent has been stepped. Implemented fully by agent types that extend Agent
String simulator.agent.Agent.writeOutput | ( | ) |
Used in creation of results files - creates an output string of information generated on this particular agent.
Used in creation of results files - creates an output string of information generated on this particular agent
|
protected |
Timestep at which this agent was created
|
protected |
Integer noting the family which this agent belongs to
|
protected |
Integer for the binary reading of the 0 and 1 coding the lineage. When a cells divides, one daughter has the index value 1, the other the index value 0, then this index is added on the left of the lineage description
|
protected |
The number of generations between the progenitor and the current agent
|
protected |
Integer noting the last simulation timestep when this agent was stepped
|
staticprotected |
Integer noting the next family that any newly created agent will belong to