public abstract class AbstractGridViewer extends SwingViewer
AbstractAgent.ReturnCode, AbstractAgent.State
Modifier and Type | Field and Description |
---|---|
protected int |
cellSize |
logger
Constructor and Description |
---|
AbstractGridViewer() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate() |
protected void |
end() |
protected static void |
executeThisViewer(String... args)
This offers a convenient way to create a main method
that launches a simulation using the viewer
class under development.
|
int |
getCellSize() |
String |
getCommunity()
shortcut for getMadkitProperty(TurtleKit.Option.community)
|
TKEnvironment |
getCurrentEnvironment() |
int |
getHeight() |
Patch |
getPatch(int x,
int y) |
Patch[] |
getPatchGrid() |
double |
getSimulationTime() |
int |
getWidth() |
protected void |
initProbes() |
void |
setCellSize(int cellSize) |
void |
setupFrame(JFrame frame) |
getDisplayMenu, getDisplayPane, getFrame, getSynchroPaintingAction, getToolBar, isRendering, isSynchronousPainting, observe, render, setDisplayPane, setRendering, setRenderingInterval, setSynchronousPainting
addProbe, allProbes, getProbes, removeAllProbes, removeProbe, toString
broadcastMessage, broadcastMessageWithRole, bucketModeCreateGroup, bucketModeRequestRole, checkAgentAddress, compareTo, createGroup, createGroup, createGroup, createGroupIfAbsent, createGroupIfAbsent, createGroupIfAbsent, createGUIOnStartUp, destroyCommunity, destroyGroup, destroyRole, executeThisAgent, executeThisAgent, executeThisAgent, getAgentAddressIn, getAgentsWithRole, getAgentsWithRole, getAgentWithRole, getDistantAgentWithRole, getExistingCommunities, getExistingGroups, getExistingRoles, getKernelAddress, getLogger, getMadkitConfig, getMadkitProperty, getMadkitProperty, getMyGroups, getMyRoles, getName, getNetworkID, getOrganizationSnapShot, getReplyTo, getServerInfo, getSimpleNetworkID, getState, hasGUI, hashCode, hasRole, isAlive, isCommunity, isGroup, isKernelOnline, isMadkitPropertyTrue, isMessageBoxEmpty, isRole, killAgent, killAgent, launchAgent, launchAgent, launchAgent, launchAgent, launchAgent, launchAgent, launchAgent, launchAgent, launchAgentBucket, launchAgentBucket, launchAgentBucket, launchAgentBucket, launchNode, launchXmlAgents, leaveGroup, leaveRole, nextMessage, nextMessage, nextMessages, proceedEnumMessage, purgeMailbox, receiveMessage, reload, requestRole, requestRole, sendMessage, sendMessage, sendMessageWithRole, sendMessageWithRole, sendReply, sendReplyWithRole, setLogLevel, setMadkitProperty, setMadkitProperty, setName
protected void initProbes()
protected void end()
end
in class AbstractAgent
public void setupFrame(JFrame frame)
setupFrame
in class SwingViewer
public Patch[] getPatchGrid()
public Patch getPatch(int x, int y)
public int getHeight()
public int getWidth()
public TKEnvironment getCurrentEnvironment()
public double getSimulationTime()
public int getCellSize()
public void setCellSize(int cellSize)
cellSize
- the cellSize to setpublic final String getCommunity()
protected static void executeThisViewer(String... args)
args
- MaDKit or TurtleKit optionsAbstractAgent.executeThisAgent(int, boolean, String...)