|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclarion.samples.HelloWorld
public class HelloWorld
This is a sample simulation running a very simple task we call the "Hello World" task. This simulation is meant to demonstrate how the CLARION library can be setup. It uses mostly default settings, so it should not be considered as being the definitive method for setting up a simulation using the CLARION Library. It is, however, a good place to start for learning how to setup a simulation.
Overview of the task:
This task simulates the "Hello World" task. It uses a single agent who's job is to respond either
"hello" or "goodbye" based on the salutation you give it and the salutation it has the goal to
wants to give. The objective is for the agent to respond with the same salutation as the salutation it is
given.
The agent has been setup using the following:
It is highly recommended that you explore the documentation to get a sense of where all
of the various parameters are located and what options you have for configuring the system. The
documentation also provides a plethora of information on how to setup pieces of the architecture.
If you are having difficulty figuring out how a part of the library works you can contact the
CLARION library support team at:
clarion.support@gmail.com
It is advised that you check the documentation before contacting the support team as it may be
able to answer your question.
Field Summary | |
---|---|
ActionCollection |
Actions
The actions that can be performed in this task |
CLARION |
Agent
The agent who is running this task. |
DimensionValueCollection |
CombinedInputSpace
The combination of the sensory input space and the stimulus for all of the drives. |
int |
CorrectCounter
A counter to keep track of how many trials the agent gets correct |
java.util.ArrayList<Goal> |
Goals
The goals the agent is able to set throughout the course of the task |
int |
NumberTrials
The number of trials to be run. |
DimensionValueCollection |
SensoryInputSpace
The sensory information. |
Constructor Summary | |
---|---|
HelloWorld()
|
Method Summary | |
---|---|
void |
initializeAgentInternalSpace()
This method initializes the agent's internal space including the actions and goals, etc. |
void |
initializeCLARIONAgent(CLARION Agent)
This method initializes the components and subsystems within the CALRION agent that are going to be used by the agent to perform this task. |
void |
initializeSensoryInformationSpace()
This method initializes the sensory input space and the combined input space. |
static void |
main(java.lang.String[] args)
The main entry point for the simulation. |
void |
reportResults()
This method reports the results of the simulation. |
void |
run(CLARION Agent)
This method runs the agent through the Hello World task. |
void |
updateDeficit(CLARION Agent,
AbstractAction ChosenAction)
This is an optional method for adjusting the deficit based on task specific information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public DimensionValueCollection SensoryInputSpace
public DimensionValueCollection CombinedInputSpace
public ActionCollection Actions
public CLARION Agent
public java.util.ArrayList<Goal> Goals
public int CorrectCounter
public int NumberTrials
Constructor Detail |
---|
public HelloWorld()
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- public void initializeSensoryInformationSpace()
initializeSensoryInformationSpace
in interface BaseSimulationTemplate
public void initializeAgentInternalSpace()
initializeAgentInternalSpace
in interface BaseSimulationTemplate
public void initializeCLARIONAgent(CLARION Agent)
initializeCLARIONAgent
in interface BaseSimulationTemplate
Agent
- The agent to initialize.public void run(CLARION Agent)
run
in interface BaseSimulationTemplate
Agent
- The agent to run.public void reportResults()
reportResults
in interface BaseSimulationTemplate
public void updateDeficit(CLARION Agent, AbstractAction ChosenAction)
Agent
- The agent whose deficit you wish to change.ChosenAction
- The chosen action.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |