public class Dependency
extends java.lang.Object
Dependency object represents a concrete dependency of a
SystemDataConsumer to a SystemDataProducer (a method of the
process model providing system data) or a Dependency.SystemDataProvider (a
normal data source providing system data). It encapsulates the dependency
type (either an element of SystemDataProducer or an element of
SystemDataProvider) and information on the object (the
"argument" of the dependency) providing the the system data. The
latter consists of an ID, a name, a data type and an identifier ID and
usually represents a node and one of its (system) output parameters (the
system data producer) or a data element (a system data provider).| Modifier and Type | Class and Description |
|---|---|
static class |
Dependency.SystemDataProvider
This enumeration provides system data provider that "extend"
SystemDataProducer, that is, both provide system data (for instance
process relevant timestamps, agent IDs,...) but while system data producer
represent methods from the process model, system data provider represent
other data sources, for instance arbitrary data elements. |
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
argUdtName
The name of the UDT of the argument of this dependency or
null
in case it is not a UDT. |
| Constructor and Description |
|---|
Dependency(DataElement dataElement)
Constructs a new
Dependency object for the designated data element
being a Dependency.SystemDataProvider. |
Dependency(SystemDataProducer type,
int id,
java.lang.String name)
Creates a new dependency for the designated system data producer (type),
the system data producer having the designated ID (usually a node ID) and
the designated name (usually a node name).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
ProcessConstants.AdeptDataType |
getArgumentDataType()
Gets the data type of the argument of this dependency.
|
int |
getArgumentID()
Gets the ID of the argument (the producer or provider) of this dependency.
|
java.util.UUID |
getArgumentIdentifierID()
Gets the identifer providing additional information on the data type of the
argument of this dependency.
|
java.lang.String |
getArgumentName()
Gets the name of the argument which is the name of a node or a data
element.
|
java.lang.String |
getArgumentUdtName()
The name of the user-defined type of the argument of this dependency or
null in case the argument is not of user-defined type ore the
name is not defined. |
java.lang.Object |
getType()
Returns an object representing the type of this dependency.
|
int |
hashCode() |
protected final java.lang.String argUdtName
null
in case it is not a UDT.public Dependency(DataElement dataElement)
Dependency object for the designated data element
being a Dependency.SystemDataProvider.dataElement - The data element for which to create a dependency as
system data provider. This must not be null.public Dependency(SystemDataProducer type, int id, java.lang.String name)
type - The system data producer type of the dependency to be created.
This must not be null.id - The ID of the system data producer entity (usually a node ID) of
the dependency to be created.name - The name of the system data producer entity (usually a node ID)
of the dependency to be created. This must not be
null but may be the empty string.public java.lang.Object getType()
SystemDataProducer or Dependency.SystemDataProvider.
Depending on this type, the information on the argument of this dependency
need to be interpreted accordingly, for instance as node or as data
element.SystemDataProducer or
Dependency.SystemDataProvider.public int getArgumentID()
type.type.public java.lang.String getArgumentName()
public ProcessConstants.AdeptDataType getArgumentDataType()
public java.lang.String getArgumentUdtName()
null in case the argument is not of user-defined type ore the
name is not defined.null.public java.util.UUID getArgumentIdentifierID()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object