|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.opendse.model.Element
net.sf.opendse.model.Mapping<T,R>
T - the type of taskR - the type of resourcepublic class Mapping<T extends Task,R extends Resource>
The Mapping represents a mapping from a Task to a
Resource.
| Field Summary | |
|---|---|
protected T |
source
|
protected R |
target
|
| Fields inherited from class net.sf.opendse.model.Element |
|---|
attributes, id, parent, TYPE |
| Constructor Summary | |
|---|---|
Mapping(Element parent,
T source,
R target)
Constructs a new mapping |
|
Mapping(java.lang.String id,
T source,
R target)
Constructs a new mapping. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
T |
getSource()
Returns the source of the mapping. |
R |
getTarget()
Returns the target of a mapping. |
void |
setSource(T task)
Sets the source of the mapping. |
void |
setTarget(R resource)
Sets the target of a mapping. |
| Methods inherited from class net.sf.opendse.model.Element |
|---|
getAttribute, getAttributeNames, getAttributeParameter, getAttributes, getId, getLocalAttributeNames, getLocalAttributes, getParent, getType, hashCode, isDefined, setAttribute, setParent, setType, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected T extends Task source
protected R extends Resource target
| Constructor Detail |
|---|
public Mapping(java.lang.String id,
T source,
R target)
id - the idsource - the source tasktarget - the target resource
public Mapping(Element parent,
T source,
R target)
parent - the parent nodesource - the sourcetarget - the destination| Method Detail |
|---|
public T getSource()
public void setSource(T task)
task - the sourcepublic R getTarget()
public void setTarget(R resource)
resource - the targetpublic boolean equals(java.lang.Object obj)
equals in class Element
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||