|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Integer,JobClass>
mapping.data.JobClassesTable
public class JobClassesTable
This class represents the collection of job classes. It was implemented as a Hashtable. This class is thread safe.
Constructor Summary | |
---|---|
JobClassesTable()
Default constructor |
|
JobClassesTable(int initialCapacity)
|
Method Summary | |
---|---|
void |
addJobClass(double arrivingRate,
long iterations)
This method is used to add Job Classes objects. |
void |
addJobClass(JobClass jobClass)
This method is used to add Job Classes objects. |
void |
printAll()
|
void |
removeJobClass(int id)
This method removes the job class with id if exists and reorder the rest of job classes. |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JobClassesTable()
public JobClassesTable(int initialCapacity)
initialCapacity
- expected number of job classesMethod Detail |
---|
public void addJobClass(JobClass jobClass)
jobClass
- the object to be addedpublic void addJobClass(double arrivingRate, long iterations)
arrivingRate
- the arrival rate of the object to be created.iterations
- the iterations of the object to be created.public void printAll()
public void removeJobClass(int id)
id
- the id of the job classes to be deleted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |