fr.lip6.sma.simulacion.app.map
Interface MapMultiCellModel

All Superinterfaces:
GameModel

public interface MapMultiCellModel
extends GameModel

Interface pour un modèle associé à la carte MapMultiCell.

Version:
$Revision: 3 $
Author:
Paul Guyot
See Also:
"aucun test défini."

Field Summary
static String PROPERTY_AGENT_COLOR_PREFIX
          Property name prefix for the color of agents.
static String PROPERTY_AGENT_POSITION_PREFIX
          Property name prefix for the position of agents.
 
Method Summary
 Color getAgentColor(String inAgentName)
          Get the color of an agent from its name.
 Point getAgentPosition(String inAgentName)
          Get the position of an agent from its name.
 Set getAllAgents()
          Get the names of all agents on the map.
 Dimension getCellSize()
          Get the size of the cells (constant).
 GameModel getGameModel()
          Get the game model.
 Point getLocalAgentPosition()
          Accesseur sur la position de l'agent local.
 Dimension getMapSize()
          Get the size of the map (constant).
 int getMaxAgentsPerCell()
          Get the maximum number of agents per cell (constant).
 
Methods inherited from interface fr.lip6.sma.simulacion.app.GameModel
addPropertyChangeListener, removePropertyChangeListener
 

Field Detail

PROPERTY_AGENT_POSITION_PREFIX

static final String PROPERTY_AGENT_POSITION_PREFIX
Property name prefix for the position of agents.

See Also:
Constant Field Values

PROPERTY_AGENT_COLOR_PREFIX

static final String PROPERTY_AGENT_COLOR_PREFIX
Property name prefix for the color of agents.

See Also:
Constant Field Values
Method Detail

getMapSize

Dimension getMapSize()
Get the size of the map (constant).

Returns:
the size of the map.

getCellSize

Dimension getCellSize()
Get the size of the cells (constant). TODO: delete this method and handle variable size cells.

Returns:
the size of the cells.

getMaxAgentsPerCell

int getMaxAgentsPerCell()
Get the maximum number of agents per cell (constant).

Returns:
the maximum number of agents per cell.

getLocalAgentPosition

Point getLocalAgentPosition()
Accesseur sur la position de l'agent local.

Returns:
la position de l'agent local.

getAgentPosition

Point getAgentPosition(String inAgentName)
Get the position of an agent from its name.

Parameters:
inAgentName - name of the agent.
Returns:
the position of this agent.

getAllAgents

Set getAllAgents()
Get the names of all agents on the map.

Returns:
the set of all agents.

getAgentColor

Color getAgentColor(String inAgentName)
Get the color of an agent from its name.

Parameters:
inAgentName - name of the agent.
Returns:
the color of this agent.

getGameModel

GameModel getGameModel()
Get the game model.

Returns:
the game model.