public class GraphSimulationConfiguration extends DefaultSimpleSimulationConfiguration implements Serializable, ServerSimulationConfiguration, XMLCodec.XMLDecodable
SimpleSimulationConfiguration.AgentConfiguration
Modifier and Type | Field and Description |
---|---|
Vector<Achievement> |
achievements
A vector holding the configurations of every possible achievement.
|
HashMap<String,ActionConfiguration> |
actionsConfMap
A map from action names to their configurations.
|
int |
agentsPerTeam
The number of agents taking part in each team.
|
int |
blurIterations
How many iterations of blurring shall happen (only relevant if optimaWeight > 0)
|
int |
cellWidth
The width of each grid cell in the abstract grid in which the graph nodes will be randomly placed
when generating the graph.
|
int |
gradientWeight
The weighting factor of gradient node weight generation
|
int |
gridHeight
The height of the abstract grid in which the graph nodes will be randomly placed when generating the graph.
|
int |
gridWidth
The width of the abstract grid in which the graph nodes will be randomly placed when generating the graph.
|
String |
mapGenerator
The type of generator to be used
|
int |
maxEdgeCost
Maximum possible value for the random assignment of costs to edges during map generation.
|
int |
maxNodeWeight
Maximum possible value for the random assignment of weights to nodes during map generation.
|
int |
maxNumberOfSteps
The max number of steps that this simulation should run if not finalized or interrupted before.
|
int |
minEdgeCost
Minimum possible value for the random assignment of costs to edges during map generation.
|
int |
minNodeWeight
Minimum possible value for the random assignment of weights to nodes during map generation.
|
int |
numberOfAgents
The number of agents taking part in the simulation.
|
int |
numberOfNodes
The number of nodes for the graph to generate.
|
int |
numberOfTeams
The number of teams taking part in the simulation.
|
int |
optimaPercentage
The probability with which a node might be a local optimum (only relevant if optimaWeight > 0)
|
int |
optimaWeight
The weighting factor of optima node weight generation
|
long |
randomSeed
The seed that will be used for the random graph generator
|
int |
randomWeight
The weighting factor of random node weight generation
|
HashMap<String,RoleConfiguration> |
rolesConfMap
A map from role names to their configurations.
|
String |
simulationName
Simulation's name.
|
String |
tournamentName
Tournament's name.
|
Constructor and Description |
---|
GraphSimulationConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
decodeFromXML(Element source)
Populates this object from the contents of an XML subtree with its root in
source (taken
from the configuration file). |
ActionConfiguration |
getActionConf(String name)
Returns the configuration object of the action whose name is given as a parameter.
|
RoleConfiguration |
getRoleConf(String name)
Returns the configuration object of the role whose name is given as a parameter.
|
Vector<String> |
getTeamNames() |
void |
setSimulationName(String name) |
void |
setTeamName(int n,
String name) |
void |
setTournamentName(String name) |
getAgentConfigurations, setAgentConfigurations
public String tournamentName
public String simulationName
public int maxNumberOfSteps
public int numberOfAgents
public int numberOfTeams
public int agentsPerTeam
public int numberOfNodes
public int gridWidth
public int gridHeight
public int cellWidth
public int minNodeWeight
public int maxNodeWeight
public int minEdgeCost
public int maxEdgeCost
public HashMap<String,ActionConfiguration> actionsConfMap
public HashMap<String,RoleConfiguration> rolesConfMap
public Vector<Achievement> achievements
public long randomSeed
public String mapGenerator
public int randomWeight
public int gradientWeight
public int optimaWeight
public int blurIterations
public int optimaPercentage
public void setSimulationName(String name)
setSimulationName
in interface ServerSimulationConfiguration
public void setTournamentName(String name)
setTournamentName
in interface ServerSimulationConfiguration
public void setTeamName(int n, String name)
setTeamName
in interface ServerSimulationConfiguration
public ActionConfiguration getActionConf(String name)
name
- The name of the action.ActionConfiguration
object.public RoleConfiguration getRoleConf(String name)
name
- The name of the role.RoleConfiguration
object.public void decodeFromXML(Element source)
source
(taken
from the configuration file).decodeFromXML
in interface XMLCodec.XMLDecodable
source
- Copyright © 2013. All Rights Reserved.