jadex.tutorial
Class ServerPlanG1
java.lang.Object
jadex.runtime.AbstractPlan
jadex.runtime.Plan
jadex.tutorial.ServerPlanG1
- All Implemented Interfaces:
- Runnable, Serializable
- public class ServerPlanG1
- extends Plan
- implements Runnable
The server plan starts a thread to accept
connections from clients.
- See Also:
- Serialized Form
Constructor Summary |
ServerPlanG1(int port)
Create a new plan. |
Method Summary |
void |
aborted()
Close server when plan is exited. |
void |
body()
The plan body.
|
void |
run()
The server code.
|
Methods inherited from class jadex.runtime.Plan |
dispatchSubgoalAndWait, dispatchSubgoalAndWait, failed, getInitialEvent, passed, sendMessageAndWait, sendMessageAndWait, waitFor, waitFor, waitFor, waitForBeliefChange, waitForBeliefChange, waitForBeliefSetChange, waitForBeliefSetChange, waitForCondition, waitForCondition, waitForCondition, waitForCondition, waitForFactAdded, waitForFactAdded, waitForFactAddedOrRemoved, waitForFactAddedOrRemoved, waitForFactRemoved, waitForFactRemoved, waitForGoal, waitForGoal, waitForInternalEvent, waitForInternalEvent, waitForMessageEvent, waitForMessageEvent, waitForReply, waitForReply, waitForSubgoal, waitForSubgoal |
Methods inherited from class jadex.runtime.AbstractPlan |
createCondition, createCondition, createExpression, createExpression, createGoal, createInternalEvent, createInternalEvent, createMessageEvent, createMessageEventFromNative, createQuery, dispatchInternalEvent, dispatchSubgoal, dispatchTopLevelGoal, endAtomic, fail, getAgentName, getBeliefbase, getCondition, getEventbase, getException, getExpression, getExpressionbase, getExternalAccess, getGoalbase, getLogger, getName, getParameter, getParameters, getParameterSet, getParameterSets, getPlanbase, getPropertybase, getQuery, getRootGoal, getRPlan, getScope, getWaitqueue, hasParameter, hasParameterSet, isAbortedOnSuccess, killAgent, sendMessage, setException, startAtomic, toString |
ServerPlanG1
public ServerPlanG1(int port)
- Create a new plan.
body
public void body()
- The plan body.
This method runs on the plan thread.
aborted
public void aborted()
- Close server when plan is exited.
run
public void run()
- The server code.
This method runs on the separate thread,
and repeatedly blocks until a client connects.
- Specified by:
run
in interface Runnable
- See Also:
Runnable
Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples. Copyright (C) 2002-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.