|
LightJason - AgentSpeak(L++)
|
abstract test for playing towers of hanoi If a file agentprintin.conf exists on the main directory alls print statements will be shown More...
Inheritance diagram for org.lightjason.agentspeak.agent.TestCHanoiTowers:
Collaboration diagram for org.lightjason.agentspeak.agent.TestCHanoiTowers:Classes | |
| class | CAgent |
| agent class More... | |
| class | CEmptyPrint |
| empty print action More... | |
| class | CGenerator |
| agent generator More... | |
| class | CSlice |
| defines a slice More... | |
| class | CStop |
| stop action More... | |
| class | CTower |
| tower More... | |
| class | CTowerPop |
| pops an elements from a tower More... | |
| class | CTowerPush |
| pushs a slice to a tower More... | |
| class | CTowerSize |
| returns the number of elements of an tower More... | |
Public Member Functions | |
| void | initialize () throws Exception |
| test initialize More... | |
| void | play () throws InterruptedException |
| test execution More... | |
Static Package Functions | |
| [static initializer] | |
Private Member Functions | |
| void | execute () |
| running towers of hanoi More... | |
| void | setup (final int p_agentnumber, final long p_towernumber, final long p_slicenumber, final String p_asl, final Stream< IAction > p_action) throws Exception |
| initialize call More... | |
Private Attributes | |
| Map< Integer, CAgent > | m_agents |
| agent map More... | |
| AtomicBoolean | m_running |
| running flag (agent can disable execution) More... | |
| Long | m_slicenumber |
| number of slices More... | |
| Map< Integer, CTower > | m_tower |
| tower map More... | |
| Long | m_towernumber |
| number of towers More... | |
Additional Inherited Members | |
Static Protected Attributes inherited from org.lightjason.agentspeak.IBaseTest | |
| static final boolean | PRINTENABLE = Files.exists( Paths.get( "agentprinting.conf" ) ) |
| enable printing of test-data More... | |
Definition at line 71 of file TestCHanoiTowers.java.
|
staticpackage |
|
private |
Definition at line 179 of file TestCHanoiTowers.java.
References org.lightjason.agentspeak.IBaseTest.PRINTENABLE.
Referenced by org.lightjason.agentspeak.agent.TestCHanoiTowers.play().
Here is the caller graph for this function:| void org.lightjason.agentspeak.agent.TestCHanoiTowers.initialize | ( | ) | throws Exception |
| Exception | on initialize error |
Definition at line 108 of file TestCHanoiTowers.java.
References org.lightjason.agentspeak.agent.TestCHanoiTowers.setup().
Here is the call graph for this function:| void org.lightjason.agentspeak.agent.TestCHanoiTowers.play | ( | ) | throws InterruptedException |
| InterruptedException | is thrown on execution error |
Definition at line 122 of file TestCHanoiTowers.java.
References org.lightjason.agentspeak.agent.TestCHanoiTowers.execute().
Here is the call graph for this function:
|
private |
| p_agentnumber | number of agents |
| p_towernumber | number of towers |
| p_slicenumber | number of slices |
| p_asl | asl file |
| p_action | action stream |
| Exception | thrown on initialize error |
Definition at line 137 of file TestCHanoiTowers.java.
References org.lightjason.agentspeak.agent.TestCHanoiTowers.CGenerator.generatesingle(), and org.lightjason.agentspeak.agent.TestCHanoiTowers.CTower.push().
Referenced by org.lightjason.agentspeak.agent.TestCHanoiTowers.initialize().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 76 of file TestCHanoiTowers.java.
|
private |
Definition at line 92 of file TestCHanoiTowers.java.
Referenced by org.lightjason.agentspeak.agent.TestCHanoiTowers.CStop.execute().
|
private |
Definition at line 84 of file TestCHanoiTowers.java.
Referenced by org.lightjason.agentspeak.agent.TestCHanoiTowers.CGenerator.CGenerator().
|
private |
|
private |
Definition at line 80 of file TestCHanoiTowers.java.
Referenced by org.lightjason.agentspeak.agent.TestCHanoiTowers.CGenerator.CGenerator().