org.yawlfoundation.yawl.resourcing.constraints
Class ConstraintFactory

java.lang.Object
  extended by org.yawlfoundation.yawl.resourcing.constraints.ConstraintFactory

public class ConstraintFactory
extends Object

This factory class creates and instantiates instances of the various constraint classes found in this package. Create Date: 10/07/2007. Last Date: 14/09/2010

Version:
2.0
Author:
Michael Adams (BPM Group, QUT Australia)

Constructor Summary
ConstraintFactory()
           
 
Method Summary
static AbstractConstraint getInstance(String constraintName)
          Instantiates a single constraint instance
static AbstractConstraint getInstance(String constraintName, HashMap<String,String> params)
          Instantiates a class of the name passed (via a call to the above method)
static Set<AbstractConstraint> getInstances()
          Constructs and returns a list of instantiated constraint objects, one for each of the different constraint classes available in this package
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintFactory

public ConstraintFactory()
Method Detail

getInstance

public static AbstractConstraint getInstance(String constraintName)
Instantiates a single constraint instance

Parameters:
constraintName - the canonical name of the constraint class (no extension) deployed within the resource service
Returns:
an instantiated constraint, or null if there was a problem

getInstance

public static AbstractConstraint getInstance(String constraintName,
                                             HashMap<String,String> params)
Instantiates a class of the name passed (via a call to the above method)

Parameters:
constraintName - the name of the class to instantiate
params - a Map of parameters required by the class to perform its constraint
Returns:
the instantiated class, or null if there was a problem

getInstances

public static Set<AbstractConstraint> getInstances()
Constructs and returns a list of instantiated constraint objects, one for each of the different constraint classes available in this package

Returns:
a Set of instantiated constraint objects


Copyright © 2004-2012 The YAWL Foundation.