|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmadkit.kernel.AbstractAgent
madkit.kernel.Watcher
edu.turtlekit2.kernel.agents.Observer
edu.turtlekit2.kernel.agents.Viewer
mysimulation.MyViewer
public class MyViewer
Viewer example.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.turtlekit2.kernel.agents.Viewer |
---|
Viewer.GridCanvas |
Field Summary |
---|
Fields inherited from class edu.turtlekit2.kernel.agents.Viewer |
---|
allTurtles, cellSize, clickedPoint, onScreen, redrawAll, xDecay, yDecay |
Fields inherited from class edu.turtlekit2.kernel.agents.Observer |
---|
attrib, envHeight, envWidth, flavors, gridValues, patchGrid, probe1, probe2, simulationGroup |
Constructor Summary | |
---|---|
MyViewer()
|
Method Summary | |
---|---|
void |
paintPatch(Graphics g,
Patch p,
int x,
int y,
int CellSize)
The Paintpatch method has been overriden in order to achieve specific representation of flavors. |
void |
paintTurtle(Graphics g,
Turtle t,
int x,
int y,
int cellS)
Standard graphical representation of turtle. |
Methods inherited from class edu.turtlekit2.kernel.agents.Viewer |
---|
display, initGUI, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, paintInfo, readyToDisplay, setup |
Methods inherited from class edu.turtlekit2.kernel.agents.Observer |
---|
activate, flavorsContains, getAllValues, getAttrib, getBooleanParam, getBooleanParam, getColorParam, getColorParam, getDoubleParam, getDoubleParam, getFlavor, getFlavorName, getFlavors, getFloatParam, getFloatParam, getIntParam, getIntParam, getParam, getParam, getSimulationGroup, getStringParam, getStringParam, setAttrib, setFlavors, watch |
Methods inherited from class madkit.kernel.Watcher |
---|
addProbe, addProbe, end, getProbes, removeAllProbes, removeProbe, update |
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, println, 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 |
Constructor Detail |
---|
public MyViewer()
Method Detail |
---|
public void paintTurtle(Graphics g, Turtle t, int x, int y, int cellS)
paintTurtle
in class Viewer
public void paintPatch(Graphics g, Patch p, int x, int y, int CellSize)
paintPatch
in class Viewer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |