source: DCWoRMS/trunk/src/simulator/GenericUser.java @ 686

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