|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnz.ac.waikato.mcennis.rat.AbstractFactory<Scheduler>
nz.ac.waikato.mcennis.rat.scheduler.SchedulerFactory
public class SchedulerFactory
Class for creating a scheduler.
Field Summary | |
---|---|
static boolean |
isInitialized
|
Fields inherited from class nz.ac.waikato.mcennis.rat.AbstractFactory |
---|
map, properties |
Method Summary | |
---|---|
boolean |
check(Properties parameters)
Verify, without modifying the underlying property lists, that the given Properties object can be merged with this factory, satisfying all constraints. |
Scheduler |
create(Properties props)
Create the given object using the settings in the Properties object. |
Scheduler |
create(java.lang.String name)
|
Scheduler |
create(java.lang.String classType,
Properties parameters)
|
Parameter |
getClassParameter()
Return the parameter containing the name of the default type produced by this object. |
java.lang.String[] |
getKnownSchedulers()
Create a new Scheduler The class is created using the 'scheduler' key. |
Properties |
getParameter()
Get all parameters associated with this object. |
static void |
initialization()
|
static SchedulerFactory |
newInstance()
return a reference to a singleton SchedulerFactory object. |
Methods inherited from class nz.ac.waikato.mcennis.rat.AbstractFactory |
---|
addDefaultProperty, addType, check, getKnownTypes, getParameter, setDefaultProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean isInitialized
Method Detail |
---|
public static SchedulerFactory newInstance()
public static void initialization()
public java.lang.String[] getKnownSchedulers()
props
- parameters for constructing a scheduler
public Scheduler create(Properties props)
AbstractFactory
create
in class AbstractFactory<Scheduler>
props
- parameters used to control the factory.
public Scheduler create(java.lang.String name)
public Scheduler create(java.lang.String classType, Properties parameters)
public boolean check(Properties parameters)
AbstractFactory
check
in class AbstractFactory<Scheduler>
parameters
- Properties object that might be merged in
public Properties getParameter()
AbstractFactory
getParameter
in class AbstractFactory<Scheduler>
public Parameter getClassParameter()
AbstractFactory
getClassParameter
in class AbstractFactory<Scheduler>
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |