|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.shiwa.fgi.iwir.AbstractPort
public abstract class AbstractPort
The Class AbstractPort represents a port. A port has a name a type optional properties and constraints.
Constructor Summary | |
---|---|
AbstractPort(java.lang.String name)
Instantiates a new abstract port. |
Method Summary | |
---|---|
void |
addConstraint(Constraint constraint)
Adds an additional constraint to the port. |
void |
addProperty(Property property)
Adds an additional property to the port. |
boolean |
equals(java.lang.Object obj)
|
java.util.List<AbstractPort> |
getAllSuccessors()
Gets the all successors of a port. |
java.util.List<Constraint> |
getConstraints()
Returns a shallow copy of the port constraints. |
AbstractTask |
getMyTask()
Gets the my task. |
java.lang.String |
getName()
Gets the name of the port. |
java.util.List<AbstractPort> |
getPredecessors()
Gets a list of predecessors. |
java.util.List<Property> |
getProperties()
Returns a shallow copy of the port properties. |
java.util.List<AbstractPort> |
getSuccessors()
Gets a list of successors. |
DataType |
getType()
Gets the type oft the port. |
java.lang.String |
getUniqueId()
Returns path+name, representing an unique identifier. |
int |
hashCode()
|
abstract boolean |
isInputPort()
Checks if the port is an instance of ONE OF the input ports. |
abstract boolean |
isOutputPort()
Checks if the port is an instance of ONE OF the output ports. |
void |
removeProperty(Property p)
Removes the given property from the list. |
void |
setType(DataType type)
Sets the type of the port. |
void |
setType(java.lang.String type)
Sets the type of the port. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractPort(java.lang.String name) throws NotWellFormedException
name
- the name
NotWellFormedException
- if the name is not validConditionToken.isValidPortName(String)
Method Detail |
---|
public java.lang.String getName()
public void addConstraint(Constraint constraint) throws NotWellFormedException
constraint
- the new constraint to add
NotWellFormedException
public void addProperty(Property property) throws NotWellFormedException
property
- the new property to add
NotWellFormedException
public void removeProperty(Property p)
p
- property to removepublic java.util.List<Constraint> getConstraints()
public java.util.List<Property> getProperties()
public java.util.List<AbstractPort> getPredecessors()
public java.util.List<AbstractPort> getSuccessors()
public java.util.List<AbstractPort> getAllSuccessors()
public java.lang.String getUniqueId()
public DataType getType()
public abstract boolean isInputPort()
public abstract boolean isOutputPort()
public AbstractTask getMyTask()
public void setType(java.lang.String type)
type
- the type of the port.public void setType(DataType type)
type
- the type of the port.public java.lang.String toString()
toString
in class java.lang.Object
getUniqueId()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |