2 * Loader.java
4 * Created on February 6, 2003, 4:35 AM
7 package com.mlw.fps.load;
9 import java.util.Date;
11 import com.mlw.fps.model.business.vo.WeaponUsage;
13 /*** The <code>Loader</code> interface is similar to a sax parser. The logs,
14 * stream, or whatever can be parsed. and as events ocure in the logs
15 * methods should be called.
17 * @todo Will this support streams?
18 * @author Matthew Wilson
20 public interface Loader
22 /*** Starts the parsing.
24 public void load() throws Exception;
27 /*** Method should be called after a new map has been parsed.
28 * @param date Time event occured.
29 * @param name of the map */
30 public abstract void startMap(Date date, String name);
32 /*** Method should be called when a player joins or
33 * switches teams.
35 * @param player name of the player.
36 * @param team name of the team.
37 * @param role name of the role.
39 public abstract void setPlayerStatus(String player, String team, String role);
41 /*** Method should be called after a new game has been parsed.
42 * @param date Time event occured.
44 public abstract void startGame(Date date);
45 public abstract void addWeaponUsage(String player, String weapon, WeaponUsage usage);
46 public abstract void endGame(Date date);
48 /*** Method should be called after a round map has been parsed.
49 * @param date Time event occured.
51 public abstract void startRound(Date date);
52 public abstract void endRound(String winningTeam, Date date);
54 /*** Method should be called after a new kill has been parsed.
55 * NOTE: The players and weapons need to be take care of here
56 * also.
57 * @param killer the name of the killer
58 * @param weapon the name of the weapon
59 * @param victim the name of the victim.
60 * @param date Time event occured. */
61 public abstract void addKill(Date date, String killer, String weapon, String victim);
This page was automatically generated by Maven