massim.framework
Interface TeamAgentParameter

All Superinterfaces:
AgentParameter
All Known Implementing Classes:
GraphSimulationAgentParameter, GridSimulationAgentParameter, GridSimulationAgentParameter, GridSimulationAgentParameter, GridSimulationAgentParameter, GridSimulationAgentParameter, SimulationAgentParameter

public interface TeamAgentParameter
extends AgentParameter

This interface should be implemented by all AgentParamter objects that intend to create an agent of one certain team. It offers a mechanism to set and retrieve an identifier for the team the agent should belong to.


Method Summary
 java.lang.Object getTeam()
          Returns a team identifier.
 void setTeam(java.lang.Object team)
          Sets the team identifier.
 

Method Detail

getTeam

java.lang.Object getTeam()
Returns a team identifier. This identifier will be used to create an appropriate agent. Note that Object.equals might be used while doing that to compare it to some other identifier. Returning null means that the team doesn't matter.

Returns:
team identifier.

setTeam

void setTeam(java.lang.Object team)
Sets the team identifier.

Parameters:
team -


Copyright © 2011. All Rights Reserved.