|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.embl.ebi.escience.scufl.DataConstraint
public class DataConstraint
Represents a data dependancy between two processors
| Constructor Summary | |
|---|---|
DataConstraint(ScuflModel model,
Port source,
Port sink)
Create a new data constraint from the source to the sink port. |
|
DataConstraint(ScuflModel model,
java.lang.String source_name,
java.lang.String sink_name)
Create a new data constraint from two name strings of the form [PROCESSOR]:[PORT] for source and sink. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
Use the toString as the comparable |
java.lang.String |
getName()
Return a string representation of the data link |
Port |
getSink()
Return the sink Port |
Port |
getSource()
Return the source Port |
java.lang.String |
toString()
Return the name as the toString() method |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataConstraint(ScuflModel model,
java.lang.String source_name,
java.lang.String sink_name)
throws DataConstraintCreationException,
UnknownPortException,
UnknownProcessorException,
MalformedNameException
MalformedNameException - if the name supplied is not in the correct format
DataConstraintCreationException - if the ports are found but are incorrectly typed
UnknownPortException - if the processor is found but doesn't contain the named
port
UnknownProcessorException - if the model doesn't contain the particular processor name
public DataConstraint(ScuflModel model,
Port source,
Port sink)
throws DataConstraintCreationException
DataConstraintCreationException - if the ports are found but are incorrectly typed| Method Detail |
|---|
public Port getSource()
public Port getSink()
public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||