|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--ninja.activeproxy.path.description.ElementDescription
|
+--ninja.activeproxy.path.description.PathDescription
Description of a path.
| Field Summary | |
private java.util.Vector |
operators
|
private java.lang.Object |
pathID
|
| Fields inherited from class ninja.activeproxy.path.description.ElementDescription |
attributes,
children,
type |
| Constructor Summary | |
PathDescription()
Constructs a PathDescription. |
|
| Method Summary | |
void |
addConnector(ConnectorDescription connector)
Adds a connector to this path. |
void |
addConnector(ConnectorDescription connector,
int sourcePosition)
Adds a connector to this path, where the position of the source of the connector is specified. |
void |
addConnector(ConnectorDescription connector,
OperatorDescription source)
Adds a connector to this path, where the source of the connector is specified. |
void |
addOperator(OperatorDescription operator)
Adds an operator to the end of the path. |
void |
addOperator(OperatorDescription operator,
int position)
Adds an operator at the specified position, shifting every operator in the path. |
void |
addPath(PathDescription insertedPath,
int sourcePosition,
int sinkPosition)
Inserts a path between the operators specified by source and sink positions. |
ConnectorDescription |
getConnector(int sourcePosition)
Returns the connector with the source operator at the given position. |
ConnectorDescription |
getConnector(OperatorDescription source)
Returns the connector with the given source operator. |
java.util.Vector |
getConnectors()
Returns a vector of all connectors in this path. |
int |
getNumConnectors()
Return the number of connectors in this path. |
int |
getNumOperators()
Returns the number of operators in the path. |
OperatorDescription |
getOperator(int position)
Returns the operator at the specified position. |
java.util.Vector |
getOperators()
Returns a vector of (ordered) operators in the path. |
java.lang.Object |
getPathID()
Returns the path ID for this path. |
static PathDescription |
readDescription(java.lang.String file)
Creates a path description from the given file. |
java.util.Vector |
removeAllConnectors()
Removes all connectors in this path. |
java.util.Vector |
removeAllOperators()
Removes all operators in this path. |
ConnectorDescription |
removeConnector(int sourcePosition)
Removes connector with source operator at the given position. |
ConnectorDescription |
removeConnector(OperatorDescription source)
Removes connector with given source operator. |
OperatorDescription |
removeOperator(int position)
Removes the operator at the specified position. |
PathDescription |
removePath(int sourcePosition,
int sinkPosition)
Removes path between the operators specified by source and sink positions. |
void |
setConnectors(java.util.Vector connectors)
Sets the connectors in this path. |
void |
setOperators(java.util.Vector operators)
Sets the operators for this path. |
void |
setPathID(java.lang.Object pathID)
Set the path ID for this path. |
| Methods inherited from class ninja.activeproxy.path.description.ElementDescription |
addChild,
addChildren,
getAllAttributes,
getAttr,
getChildren,
getChildrenByType,
getType,
removeChild,
removeChildrenByType,
setAttr |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private java.util.Vector operators
private java.lang.Object pathID
| Constructor Detail |
public PathDescription()
| Method Detail |
public void setPathID(java.lang.Object pathID)
pathID - path ID.public java.lang.Object getPathID()
public void setOperators(java.util.Vector operators)
operator - vector of (ordered) operators in the path.public java.util.Vector getOperators()
public int getNumOperators()
public void addOperator(OperatorDescription operator)
operator - operator to be added.
public void addOperator(OperatorDescription operator,
int position)
throws java.lang.ArrayIndexOutOfBoundsException
operator - operator to be added.position - position where to add the opeartor.
public OperatorDescription getOperator(int position)
throws java.lang.ArrayIndexOutOfBoundsException
position - position of the operator to be returned.public java.util.Vector removeAllOperators()
public OperatorDescription removeOperator(int position)
throws java.lang.ArrayIndexOutOfBoundsException
position - position of the operator to be removed.public void setConnectors(java.util.Vector connectors)
connectors - vector of connectors to be set for this path.public java.util.Vector getConnectors()
public int getNumConnectors()
public void addConnector(ConnectorDescription connector)
connector - connector to be added to this path.
public void addConnector(ConnectorDescription connector,
OperatorDescription source)
throws java.lang.ArrayIndexOutOfBoundsException
connector - connector to be added.source - source operator for this connector.
public void addConnector(ConnectorDescription connector,
int sourcePosition)
throws java.lang.ArrayIndexOutOfBoundsException
connector - connector to be added.sourcePosition - position of source operator for this connector.
public ConnectorDescription getConnector(OperatorDescription source)
throws java.lang.ArrayIndexOutOfBoundsException
source - source operator of the connector.
public ConnectorDescription getConnector(int sourcePosition)
throws java.lang.ArrayIndexOutOfBoundsException
sourcePosition - position of source operator of the connector.public java.util.Vector removeAllConnectors()
public ConnectorDescription removeConnector(OperatorDescription source)
throws java.lang.ArrayIndexOutOfBoundsException
source - source operator of connector to be removed.
public ConnectorDescription removeConnector(int sourcePosition)
throws java.lang.ArrayIndexOutOfBoundsException
sourcePosition - source operator position of connector to be removed.
public void addPath(PathDescription insertedPath,
int sourcePosition,
int sinkPosition)
throws java.lang.ArrayIndexOutOfBoundsException
insertedPath - path to be inserted.sourcePosition - position of source operator.sinkPosition - position of sink operator.
public PathDescription removePath(int sourcePosition,
int sinkPosition)
throws java.lang.ArrayIndexOutOfBoundsException
sourcePosition - position of source operator.sinkPosition - position of sink operator.public static PathDescription readDescription(java.lang.String file)
file - file where to read from.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||