edu.memphis.ccrg.lida.framework.gui
Interface FrameworkGuiController

All Known Implementing Classes:
FrameworkGuiControllerImpl

public interface FrameworkGuiController

Controller for the FrameworkGui. An interface between the Gui and Agent implementing the MVC pattern.

Author:
Javier Snaider

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.
 

Method Detail

executeCommand

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. This name corresponds to a property in guiCommands.properties file.

Parameters:
commandName - the name of the command, names must be defined in guiCommands.properties
parameters - a Map of optional parameters for the command.
Returns:
the result of the command.

executeCommand

java.lang.Object executeCommand(Command command)
Executes a command sent by the GUI

Parameters:
command - the command to execute.
Returns:
The result of the command.

registerAgent

void registerAgent(Agent agent)
Sets the Agent this controller controls. This Agent object represents the model.

Parameters:
agent - Agent