Warning: Can't use blame annotator:
svn blame failed on trunk/src/tmcsim/interfaces/SimulationStatusInterface.java: ("Can't find a temporary directory: Internal error", 20014)

source: tmcsimulator/trunk/src/tmcsim/interfaces/SimulationStatusInterface.java @ 2

Revision 2, 3.6 KB checked in by jdalbey, 10 years ago (diff)

Initial Import of project files

RevLine 
1package tmcsim.interfaces;
2
3import java.rmi.Remote;
4import java.rmi.RemoteException;
5import java.util.TreeMap;
6import java.util.TreeSet;
7import java.util.Vector;
8
9import tmcsim.cadmodels.CMSInfo;
10import tmcsim.client.cadclientgui.data.Incident;
11import tmcsim.client.cadclientgui.data.IncidentEvent;
12import tmcsim.common.CADEnums.PARAMICS_STATUS;
13import tmcsim.common.CADEnums.SCRIPT_STATUS;
14
15/**
16 * RMI Interface providing methods to get the current status information
17 * for the simulation.  This data includes a list of all Incidents
18 * loaded into the simulation, all IncidentEvents that have
19 * previously occured, and the current simulation time.  The status of the
20 * Script and Paramics connection, along with the current Paramics network
21 * loaded, are also through methods in this interface.  Diversion information
22 * provided includes a list of all CMS ID strings and the CMSInfo objects
23 * for these IDs.
24 *
25 * @author Matthew Cechini
26 * @version
27 */
28public interface SimulationStatusInterface extends Remote {
29
30    /**
31     * Gets the list of all Incident objects in the current simulation.
32     *
33     * @return Vector of Incident current objects.
34     * @throws RemoteException if there is a problem in the RMI communication.
35     */
36    public Vector<Incident> getIncidentList() throws RemoteException;
37
38    /**
39     * Gets a map of IncidentEvents that have occured in this simulation.  The
40     * map keys are the log numbers for triggered Incidents.  Map values are
41     * Vectors of the IncidentEvents that are triggered for each Incident.
42     *
43     * @return Map of IncidentEvent objects for the corresponding Incidents.
44     * @throws RemoteException if there is a problem in RMI Communication.
45     */
46    public TreeMap<Integer, Vector<IncidentEvent>> getTriggeredEvents() throws RemoteException;
47
48    /**
49     * Gets the current simulation time (in seconds).
50     *
51     * @return Value of current simulation time(in seconds).
52     * @throws RemoteException if there is a problem in RMI Communication
53     */
54    public long getCurrentSimulationTime() throws RemoteException;
55
56    /**
57     * Get the current status of the script. 
58     *
59     * @return SCRIPT_STATUS enumeration value.
60     * @throws RemoteException if there is a problem in RMI Communication.
61     * @see SCRIPT_STATUS
62     */
63    public SCRIPT_STATUS getScriptStatus() throws RemoteException;
64
65    /**
66     * Get the current status of the paramics connection. 
67     *
68     * @return PARAMICS_STATUS enumeration value.
69     * @throws RemoteException if there is a problem in RMI Communication.
70     * @see PARAMICS_STATUS
71     */
72    public PARAMICS_STATUS getParamicsStatus() throws RemoteException;
73
74    /**
75     * Get the value of the Paramics network that is loaded.
76     *
77     * @return Value of the Network ID loaded.  Returns -1 if no network is loaded.  *
78     * @throws RemoteException if there is an error in the RMI communication.
79     */
80    public int getParamicsNetworkLoaded() throws RemoteException;
81
82    /**
83     * Gets the current list of CMSInfo ID strings.
84     *
85     * @return Set of CMSInfo ID strings.
86     * @throws RemoteException if there is an error in the RMI communication
87     */
88    public TreeSet<String> getCMSIDs() throws RemoteException;
89   
90    /**
91     * Gets the current CMSInfo diversion object for the parameter unique
92     * CMS ID string.
93     * @param theCMSID A unique CMS ID string.
94     * @return The CMSInfo object found for the parameter ID.  Returns null
95     *         if an invalid ID string is given.
96     * @throws RemoteException if there is an error in the RMI communication
97     */
98    public CMSInfo getCMSDiversionInfo(String theCMSID) throws RemoteException;
99
100   
101}
Note: See TracBrowser for help on using the repository browser.