Factory Methods for GEDStrategy Objects
GEDStrategy(object, ...) S4 (GEDStrategy) `GEDStrategy`(object, key, ...) S4 (function) `GEDStrategy`(object, ..., name = NULL)
GEDalgorithm
is createdobject
and key
are the only arguments and if the key
matches the key of object
itself, which simply
returns the object unchanged -- and is somehow not a very
useful call. If missing, a unique key is generated using
a digest hash of the result from
tempfile()
.signature(object = "missing")
:
This method serves as a standard constructor and is
equivalent to new('GEDalgorithm', ...)
, meaning
that all arguments must be named and correspond to slots
in GEDStrategy-class
.
signature(object =
"GEDalgorithm_entry")
: Method to create a
GEDalgorithm
object from its entry in the internal
registry.
signature(object =
"GEDStrategy")
: Constructor-Copy method, which creates
an GEDalgorithm
object from a template and ensure
that the object has a key that does not conflict with
registered algorithms.
signature(object =
"character")
: This method creates a GEDalgorithm
object from an access key, which allows to make objects
using any registered algorithm as a template.
The access key must be valid, i.e. that it must
correspond exactly to a registered algorithm. If other
arguments are passed, these must correspond to slots in
GEDStrategy-class
, and will overwrite the
values defined by the registered algorithm.
signature(object = "function")
:
This method creates a GEDalgorithm
object from a
plain R function.