|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.memphis.ccrg.lida.framework.gui.FrameworkGuiControllerImpl
public class FrameworkGuiControllerImpl
Default Implementation of FrameworkGuiController
Constructor Summary | |
---|---|
FrameworkGuiControllerImpl(Agent agent,
java.util.Properties commands)
|
Method Summary | |
---|---|
java.lang.Object |
executeCommand(Command command)
Executes a command sent by the GUI |
java.lang.Object |
executeCommand(java.lang.String commandName,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Executes a command specified by the name. |
void |
registerAgent(Agent agent)
Sets the Agent this controller controls. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FrameworkGuiControllerImpl(Agent agent, java.util.Properties commands)
agent
- Agent
objectcommands
- the commandsMethod Detail |
---|
public java.lang.Object executeCommand(java.lang.String commandName, java.util.Map<java.lang.String,java.lang.Object> parameters)
FrameworkGuiController
executeCommand
in interface FrameworkGuiController
commandName
- the name of the command, names must be defined in guiCommands.propertiesparameters
- a Map of optional parameters for the command.
public java.lang.Object executeCommand(Command command)
FrameworkGuiController
executeCommand
in interface FrameworkGuiController
command
- the command to execute.
public void registerAgent(Agent agent)
FrameworkGuiController
Agent
this controller controls. This Agent
object represents the model.
registerAgent
in interface FrameworkGuiController
agent
- Agent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |