edu.turtlekit2.kernel.python
Class PythonCommandCenter

java.lang.Object
  extended by madkit.kernel.AbstractAgent
      extended by madkit.kernel.SynchroScheduler
          extended by edu.turtlekit2.kernel.python.PythonCommandCenter
All Implemented Interfaces:
ActionListener, Serializable, EventListener

public class PythonCommandCenter
extends madkit.kernel.SynchroScheduler
implements ActionListener

Titre : PythonCommandCenter

Description : command center managing the use of python under turtlekit.

Version:
1.1 - 20/02/2002
Author:
Fabien MICHEL
See Also:
Serialized Form

Field Summary
 madkit.utils.agents.AbstractEditorPanel display
           
protected  org.python.util.PythonInterpreter interp
           
 
Constructor Summary
PythonCommandCenter(String group)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void activate()
           
 void addTurtle(Turtle t)
           
 void clearPatch()
           
 void clearT()
           
 void createTurtle(int x)
           
 void end()
           
 void evaluation(String act, String content)
           
 void executeProcedure(String s)
           
 org.python.util.PythonInterpreter getInterpret()
           
 void initGUI()
           
 void makeProcedure(String s)
           
 void println(String s)
           
 void turtleMethod(String s)
           
 
Methods inherited from class madkit.kernel.SynchroScheduler
addActivator, addActivator, getActivators, removeActivator, removeAllActivators
 
Methods inherited from class madkit.kernel.AbstractAgent
broadcastMessage, broadcastMessage, connectedWithCommunity, createGroup, createGroup, debug, disposeMyGUI, foundGroup, getAddress, getAgentInformation, getAgentsWithRole, getAgentsWithRole, getAgentWithRole, getAgentWithRole, getAvailableCommunities, getBean, getController, getCurrentKernelAddress, getDebug, getExistingGroups, getExistingGroups, getExistingRoles, getExistingRoles, getGroups, getGUIObject, getMessageBoxSize, getMyGroups, getMyGroups, getMyRoles, getMyRoles, getName, getRoles, hasGUI, hashCode, isBelongingToGroup, isBelongingToGroup, isCommunity, isGroup, isGroup, isMemberOf, isMemberOf, isMessageBoxEmpty, isRole, isRole, joinGroup, killAgent, launchAgent, launchAgent, leaveGroup, leaveGroup, leaveRole, leaveRole, nextMessage, print, receiveMessage, redisplayMyGUI, requestRole, requestRole, requestRole, restoreAgent, sendMessage, sendMessage, sendMessage, setBean, setController, setDebug, setGUIObject, setName, setOutput, setOutputWriter, toString, windowClosing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

display

public madkit.utils.agents.AbstractEditorPanel display

interp

protected org.python.util.PythonInterpreter interp
Constructor Detail

PythonCommandCenter

public PythonCommandCenter(String group)
Method Detail

getInterpret

public org.python.util.PythonInterpreter getInterpret()

println

public void println(String s)
Overrides:
println in class madkit.kernel.AbstractAgent

initGUI

public void initGUI()
Overrides:
initGUI in class madkit.kernel.AbstractAgent

activate

public void activate()
Overrides:
activate in class madkit.kernel.AbstractAgent

evaluation

public void evaluation(String act,
                       String content)

turtleMethod

public final void turtleMethod(String s)

createTurtle

public void createTurtle(int x)

addTurtle

public void addTurtle(Turtle t)

clearT

public void clearT()

clearPatch

public void clearPatch()

makeProcedure

public void makeProcedure(String s)

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

executeProcedure

public void executeProcedure(String s)

end

public void end()
Overrides:
end in class madkit.kernel.SynchroScheduler