se.sics.tasim.is.common
Class GameScheduler
java.lang.Object
se.sics.tasim.is.common.HttpPage
se.sics.tasim.is.common.GameScheduler
public class GameScheduler
- extends HttpPage
Method Summary |
static java.lang.String |
formatServerTimeDate(long time)
|
int |
gamesPerAgent(int noAgents)
|
void |
handle(java.lang.String pathInContext,
java.lang.String pathParams,
org.mortbay.http.HttpRequest req,
org.mortbay.http.HttpResponse response)
|
static void |
main(java.lang.String[] args)
|
static long |
parseServerTimeDate(java.lang.String date)
|
static int[][] |
scheduleGames(int noAgents,
int agentsPerGame)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GameScheduler
public GameScheduler(InfoServer infoServer,
SimServer simServer,
java.lang.String header)
handle
public void handle(java.lang.String pathInContext,
java.lang.String pathParams,
org.mortbay.http.HttpRequest req,
org.mortbay.http.HttpResponse response)
throws org.mortbay.http.HttpException,
java.io.IOException
- Specified by:
handle
in class HttpPage
- Throws:
org.mortbay.http.HttpException
java.io.IOException
gamesPerAgent
public int gamesPerAgent(int noAgents)
scheduleGames
public static int[][] scheduleGames(int noAgents,
int agentsPerGame)
formatServerTimeDate
public static java.lang.String formatServerTimeDate(long time)
parseServerTimeDate
public static long parseServerTimeDate(java.lang.String date)
throws java.text.ParseException
- Throws:
java.text.ParseException
main
public static void main(java.lang.String[] args)
Copyright © 2007-2009 Association for Trading Agent Research. All Rights Reserved.