|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Port of an Operator in a lambda-net.
Operator
Field Summary | |
static int |
PORT_TYPE_COUNT
|
static int |
TYPE_ABSTRACTOR_BIND
|
static int |
TYPE_ABSTRACTOR_BODY
|
static int |
TYPE_ABSTRACTOR_INPUT
|
static int |
TYPE_APPLICATOR_ARGUMENT
|
static int |
TYPE_APPLICATOR_BODY
|
static int |
TYPE_APPLICATOR_INPUT
|
static int |
TYPE_DELIMITER_BODY
|
static int |
TYPE_DELIMITER_INPUT
|
static int |
TYPE_DUPLICATOR_INPUT1
|
static int |
TYPE_DUPLICATOR_INPUT2
|
static int |
TYPE_DUPLICATOR_OUTPUT
|
static int |
TYPE_ERASER_PORT
|
Method Summary | |
void |
connectTo(Port connectedPort)
Connect this Port to a another Port. |
void |
disconnect()
Disconnect this Port. |
Port |
getConnectedPort()
Returns the connected Port if any, null elsewhere. |
int |
getNumber()
Returns the number of this Port. |
Operator |
getOperator()
Returns the Operator to which this Port belongs. |
int |
getPortType()
Returns the type of this Port. |
boolean |
isFirstAuxiliary()
Returns true if this Port is the first auxiliary Port of its Operator. |
boolean |
isInput()
Returns true if this Port is an input Port, false if it is an output Port. |
boolean |
isPrincipal()
Returns true if this Port is the principal one of its Operator. |
boolean |
isSecondAuxiliary()
Returns true if this Port is the second auxiliary Port of its Operator. |
Field Detail |
public static final int PORT_TYPE_COUNT
public static final int TYPE_ERASER_PORT
public static final int TYPE_DELIMITER_INPUT
public static final int TYPE_DELIMITER_BODY
public static final int TYPE_ABSTRACTOR_INPUT
public static final int TYPE_ABSTRACTOR_BODY
public static final int TYPE_ABSTRACTOR_BIND
public static final int TYPE_APPLICATOR_INPUT
public static final int TYPE_APPLICATOR_BODY
public static final int TYPE_APPLICATOR_ARGUMENT
public static final int TYPE_DUPLICATOR_INPUT1
public static final int TYPE_DUPLICATOR_INPUT2
public static final int TYPE_DUPLICATOR_OUTPUT
Method Detail |
public int getPortType()
public Operator getOperator()
public int getNumber()
public boolean isPrincipal()
public boolean isFirstAuxiliary()
public boolean isSecondAuxiliary()
public boolean isInput()
public Port getConnectedPort()
public void connectTo(Port connectedPort)
connectedPort
- a Port to connect.
org.xmloperator.lambda.net.exception.AlreadyConnectedException
- on trying to connect two Ports whose one or the two ones are already
connected.
java.lang.IllegalArgumentException
- if the given Port is null or itself.
org.xmloperator.lambda.net.exception.SameTypePortException
- if the
given Port has the same type (input or output) than this Port.public void disconnect()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |