source: xssim/trunk/src/simulator/GenericUser.java @ 104

Revision 104, 1.3 KB checked in by wojtekp, 13 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package simulator;
2
3
4import gssim.schedframe.scheduling.AbstractExecutable;
5import gssim.schedframe.scheduling.utils.JobDescription;
6import gssim.schedframe.scheduling.utils.TaskDescription;
7
8import java.util.List;
9
10import schedframe.scheduling.JobInterface;
11
12
13/**
14 * This interface introduces a generic user entity, which is intended to send jobs and tasks
15 * to a broker entity.
16 *
17 * @author Stanislaw Szczepanowski
18 * @param <SubJob> a job type, which implements the {@link Job} interface
19 */
20public interface GenericUser {
21
22        /**
23         * @return a list of all jobs, that have been sent by the user entity
24         */
25        public List<JobDescription> getAllSentJobs();
26       
27        /**
28         * @return a list of all tasks, that have been sent by the user entity
29         */
30        public List<TaskDescription> getAllSentTasks();
31       
32        /**
33         * @return a list of all jobs, that have returned from execution to the user entity
34         */
35        public List<JobInterface<?>> getAllReceivedJobs();
36       
37        /**
38         * @return the name of the user entity (unique in the entire simulation run)
39         */
40        public String getUserName();
41       
42        public int getFinishedTasksCount() ;
43       
44       
45        /**
46         * This method is intended for debug purposes.
47         * @return <code>true</code> if during the simulation, any error occurred
48         * (e.g. the same job has been returned twice).
49         */
50        public boolean isError();
51}
Note: See TracBrowser for help on using the repository browser.