massim.server
Class Server

java.lang.Object
  extended by massim.server.AbstractServer
      extended by massim.server.Server

public class Server
extends AbstractServer


Field Summary
 int AGENT_BACKLOG_DEFAULT
           
 int AGENT_PORT_DEFAULT
           
protected  AgentManager agentmanager
           
protected  ArrayAgentProvider arrayagentprovider
           
protected  org.w3c.dom.Element el_match
           
protected  massim.server.Server.LaunchSync launchSync
           
protected  UsernamePasswordSocketLoginManager loginsocketmanager
           
protected  java.util.List<java.lang.String> manual
           
protected  RMIServerStatus rmiinfoserver2
           
protected  java.rmi.registry.Registry rmiregistry
           
protected  massim.server.Server.RMITournamentServer rmitournamentserver
           
 int[] score
           
protected  ServerInetSocketListener serverinetsocketlistener
           
protected  ServerSimulationAgents serversimulationagents
           
protected  InetSocketListener socketlistener
           
protected  ServerSimulationRun2 sr
           
 boolean stopped
           
 java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> team_member
           
protected  TeamAgentFilter teamagentfilter
           
protected  int tournamentmode
           
protected  java.lang.String tournamentname
           
protected  org.w3c.dom.Document xmlTournamentReport
           
protected  java.io.File xmlTournamentReportFile
           
 
Fields inherited from class massim.server.AbstractServer
configurationFilenamePath
 
Constructor Summary
Server()
           
Server(java.lang.String[] args)
           
 
Method Summary
 void config(org.w3c.dom.Element xmlconfiguration)
           
 int getStep()
           
 java.util.HashMap<java.lang.String,java.lang.Integer> getTeam_Score()
           
static void main(java.lang.String[] args)
           
 void run()
           
 void runMatch(org.w3c.dom.Element el_match, java.util.Map<java.lang.String,java.lang.String> teammap, java.lang.String name, org.w3c.dom.Node statmatchparent)
           
 int[] runMatch(org.w3c.dom.Element el_match, java.util.Map<java.lang.String,java.lang.String> teammap, java.lang.String name, org.w3c.dom.Node statmatchparent, java.lang.String team1Name, java.lang.String team2Name)
           
 void startSimulation()
           
 void stopSimulation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AGENT_PORT_DEFAULT

public final int AGENT_PORT_DEFAULT
See Also:
Constant Field Values

AGENT_BACKLOG_DEFAULT

public final int AGENT_BACKLOG_DEFAULT
See Also:
Constant Field Values

score

public int[] score

socketlistener

protected InetSocketListener socketlistener

serverinetsocketlistener

protected ServerInetSocketListener serverinetsocketlistener

serversimulationagents

protected ServerSimulationAgents serversimulationagents

loginsocketmanager

protected UsernamePasswordSocketLoginManager loginsocketmanager

arrayagentprovider

protected ArrayAgentProvider arrayagentprovider

agentmanager

protected AgentManager agentmanager

teamagentfilter

protected TeamAgentFilter teamagentfilter

rmiregistry

protected java.rmi.registry.Registry rmiregistry

rmiinfoserver2

protected RMIServerStatus rmiinfoserver2

rmitournamentserver

protected massim.server.Server.RMITournamentServer rmitournamentserver

xmlTournamentReport

protected org.w3c.dom.Document xmlTournamentReport

xmlTournamentReportFile

protected java.io.File xmlTournamentReportFile

manual

protected java.util.List<java.lang.String> manual

tournamentname

protected java.lang.String tournamentname

launchSync

protected massim.server.Server.LaunchSync launchSync

tournamentmode

protected int tournamentmode

team_member

public java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> team_member

sr

protected ServerSimulationRun2 sr

el_match

protected org.w3c.dom.Element el_match

stopped

public boolean stopped
Constructor Detail

Server

public Server()

Server

public Server(java.lang.String[] args)
       throws InvalidConfigurationException
Throws:
InvalidConfigurationException
Method Detail

config

public void config(org.w3c.dom.Element xmlconfiguration)
            throws InvalidConfigurationException
Throws:
InvalidConfigurationException

runMatch

public void runMatch(org.w3c.dom.Element el_match,
                     java.util.Map<java.lang.String,java.lang.String> teammap,
                     java.lang.String name,
                     org.w3c.dom.Node statmatchparent)
              throws InvalidConfigurationException
Throws:
InvalidConfigurationException

runMatch

public int[] runMatch(org.w3c.dom.Element el_match,
                      java.util.Map<java.lang.String,java.lang.String> teammap,
                      java.lang.String name,
                      org.w3c.dom.Node statmatchparent,
                      java.lang.String team1Name,
                      java.lang.String team2Name)
               throws InvalidConfigurationException
Throws:
InvalidConfigurationException

run

public void run()
         throws InvalidConfigurationException
Throws:
InvalidConfigurationException

main

public static void main(java.lang.String[] args)
                 throws InvalidConfigurationException
Throws:
InvalidConfigurationException

startSimulation

public void startSimulation()

stopSimulation

public void stopSimulation()

getStep

public int getStep()

getTeam_Score

public java.util.HashMap<java.lang.String,java.lang.Integer> getTeam_Score()


Copyright © 2012. All Rights Reserved.