|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.ximtec.igesture.algorithm.AlgorithmFactory
public class AlgorithmFactory
The factory used to create algorithms.
| Constructor Summary | |
|---|---|
AlgorithmFactory()
|
|
| Method Summary | |
|---|---|
static Algorithm |
createAlgorithm(Configuration config)
Instantiates an algorithm with a given configuration object. |
static Algorithm |
createAlgorithm(InputStream configuration)
Instantiates an algorithm with a specific configuration object. |
static Algorithm |
createAlgorithm(InputStream config,
InputStream set)
Creates a new algorithm instance. |
static Algorithm |
createAlgorithmInstance(String className)
Creates an algorithm instance. |
static List<Algorithm> |
createAlgorithms(Configuration config)
Creates a list of algorithms and initialises them with the parameters provided in the configuration object. |
static List<Algorithm> |
createAlgorithms(InputStream configuration)
Creates a list of algorithms and initialises them with the parameters provided in the configuration object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlgorithmFactory()
| Method Detail |
|---|
public static List<Algorithm> createAlgorithms(InputStream configuration)
throws AlgorithmException
configuration - the input stream from where the XML configuration can
be read from.
AlgorithmException - if the algorithms could not be created.
public static List<Algorithm> createAlgorithms(Configuration config)
throws AlgorithmException
config - the configuration object.
AlgorithmException - if the algorithms could not be created.
public static Algorithm createAlgorithm(InputStream configuration)
throws AlgorithmException
configuration - the input stream from which the XML configuration can
be read from.
AlgorithmException - if the algorithm could not be created.
public static Algorithm createAlgorithm(InputStream config,
InputStream set)
throws AlgorithmException
config - the input stream from which the XML configuration can be read
from.set - the input stream from which the XML gesture set can be read
from.
AlgorithmException - if the algorithm could not be created.
public static Algorithm createAlgorithm(Configuration config)
throws AlgorithmException
config - the configuration of the algorithm.
AlgorithmException - if the algorithm could not be created.public static Algorithm createAlgorithmInstance(String className)
className - the full qualified name of the algorithm.
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||