Uses of Class
simuLCS.Entity

Packages that use Entity
simuLCS   
simuLCS.graphics   
 

Uses of Entity in simuLCS
 

Subclasses of Entity in simuLCS
 class Agent
          A basic Agent, placed randomly inside the Arena and moving randomly (no specific behaviour).
 class AgentClassifier
          Agent having a behaviour described as a set of rules (classifiers).
 class AgentClassifierAutomatic
          Agent having two behaviours and switching between them every X time steps.
 class AgentClassifierDuck
          An agent with a Duck Behaviour described as a set of rules (using TemplateRSP).
 class AgentClassifierLearning
          Agent with a Behaviour and a Learning Classifier System plugged in.
 class AgentDuck
          Agent moving according to R.
 class AgentInteractive
          Agent moving according to the position of the mouse.
 class Arena
          The Circular Arena
 class Food
          Entity non-moving and not dangerous, used to test the reactions of the Agent.
 

Methods in simuLCS with parameters of type Entity
 void Agent.move(Arena a, Entity[] others, int nbagents, java.awt.Graphics2D g)
          Move the Agent by modifying its coordinates.
 java.awt.geom.Point2D Agent.getCoordNearTo(Entity otherEntity)
          Return the closest point of the Agent to another Entity
 Vector2D AgentClassifier.getNewMovVectorAccordingTo(ClassifierSet behaviourToConsider, Arena arena, Entity[] others, int nbEntities, java.awt.Graphics2D g, ClassifierSet actionSetToReturn)
          Calculates the New Movement Vector according to the behaviourToConsider.
 void AgentClassifier.move(Arena arena, Entity[] others, int nbEntities, java.awt.Graphics2D g)
          Move the agent according to its behaviour and the others entities around.
 boolean AgentClassifier.canDetect(Entity e)
          Indicates if an Entity can be detected (inside the Visibility Circle).
 void AgentClassifierAutomatic.move(Arena arena, Entity[] others, int nbEntities, java.awt.Graphics2D g)
          Moves the agent.
protected  ZClassifierSet AgentClassifierLearning.moveLearner(Arena arena, Entity[] others, int nbEntities, java.awt.Graphics2D g)
          From the actual position of the agent, the system will try to guess where it is going to be at the next time step, by calculating its response according to its expected behaviour (ie the current behaviour provided by the Learning System).
protected  void AgentClassifierLearning.moveAndLearn(java.awt.geom.Point2D nextCoord, Vector2D nextMovVector, Arena arena, Entity[] others, int nbEntities, java.awt.Graphics2D g)
          Moves the Ghost and updates the rules with the reward
 void AgentClassifierLearning.move(Arena arena, Entity[] others, int nbEntities, java.awt.Graphics2D g)
          Moves the agent.
 void AgentDuck.move(Arena a, Entity[] others, int nbEntities, java.awt.Graphics2D g)
          Moves the Agent according to the equation giving the movement vector
 java.awt.geom.Point2D Arena.getCoordNearTo(Entity otherEntity)
          For the arena, the coordinates used to get the vector are the coordinates of the closest point of the arena
 void Arena.move(Arena a, Entity[] others, int nbagents, java.awt.Graphics2D g)
          The Arena does not move.
 java.awt.geom.Point2D Entity.getCoordNearTo(Entity otherEntity)
          By default, the closest coordinates of an entity are its normal coordinates.
abstract  void Entity.move(Arena a, Entity[] others, int nbEntities, java.awt.Graphics2D g)
          Subclasses must explain how the entity moves.
 void Food.move(Arena a, Entity[] others, int nbagents, java.awt.Graphics2D g)
          Food does not move.
 void Simulation.add(Entity e)
          Adding the given entity to the Simulation.
 void Simulation.remove(Entity e)
          Removing the given entity to the simulation
abstract  java.lang.String Template.testCondition(int i, Entity otherEntity)
          Return a string of "0","1", or "#" containing the result of the condition i tested on the entity otherEntity
 java.lang.String Template.testCondition(Entity otherEntity)
          Return a string of "0","1", or "#" containing the result of all the conditions tested on the entity otherEntity
abstract  Vector2D Template.getVectorFromAction(Classifier c, Entity me, Entity otherEntity)
          Return the Vector created by the Action part of the classifier
 Vector2D Template.getVectorFromActions(Classifier[] cs, Entity me, Entity otherEntity)
          Return the Vector created by the actions partS of several classifiers
 java.lang.String TemplateRSP.testCondition(int i, Entity otherEntity)
          Gives the definition of an Entity according to the criteria given by this template (is moving ?
 Vector2D TemplateRSP.getVectorFromAction(Classifier c, Entity me, Entity otherEntity)
          Calculate the Vector generated by the Action part of the Classifier This function gives the meaning of the Action part.
 Vector2D TemplateRSPSimple.getVectorFromAction(Classifier c, Entity me, Entity otherEntity)
          Only the Action Part was modified (4 bits)
 Vector2D TemplateRSPVerySimple.getVectorFromAction(Classifier c, Entity me, Entity otherEntity)
           
static Vector2D Vector2D.getCorrectedVector(Vector2D movVector, Arena a, Entity me, java.awt.Graphics2D g)
          Correct the vector so that it doesn't bring the Entity outside the Arena.
static void Utils.writeFileGnuplot(java.lang.String fileBase, Entity[] en, java.lang.String type)
          Writes the gnuplot command file
static void Utils.writeFileWithRules(java.lang.String fileBase, Entity[] en)
          Writes a file with the rules remaining in the population for each agent at the end of the simulation, together with a LaTeX table to include it in a LaTeX file
 

Uses of Entity in simuLCS.graphics
 

Fields in simuLCS.graphics declared as Entity
private  Entity G_ListButtons.lastClicked
          used to record the last action of the user
 

Methods in simuLCS.graphics that return Entity
static Entity G_Panel.getCurrentEntityToWatch()
          Returns the current entity selected to watch the LCS working
static Entity[] G_Panel.getArraySelectedEntities()
          Return an Array of all the Selected Entities