org.xmloperator.lambda.net.model
Interface Applicator

All Superinterfaces:
Operator

public interface Applicator
extends Operator

Applicator in a lambda-net.


Field Summary
 
Fields inherited from interface org.xmloperator.lambda.net.model.Operator
INTERACTION_ANNIHILATE_DELIMITER, INTERACTION_ANNIHILATE_DUPLICATOR, INTERACTION_ANNIHILATE_ERASER, INTERACTION_BETA_IDENTITY, INTERACTION_BETA_REDUCTION, INTERACTION_COMMUTE_DELIMITER, INTERACTION_COMMUTE_DUPLICATOR, INTERACTION_DUPLICATE_ABSTRACTOR, INTERACTION_DUPLICATE_APPLICATOR, INTERACTION_DUPLICATE_IDENTITY, INTERACTION_ERASE_ABSTRACTOR, INTERACTION_ERASE_APPLICATOR, INTERACTION_ERASE_DELIMITER, INTERACTION_ERASE_DUPLICATOR, INTERACTION_ERASE_IDENTITY, INTERACTION_EXTRUDE_ABSTRACTOR, INTERACTION_EXTRUDE_APPLICATOR, INTERACTION_EXTRUDE_CLOSED_ABSTRACTOR, INTERACTION_EXTRUDE_DUPLICATOR, INTERACTION_EXTRUDE_IDENTITY, INTERACTION_TYPE_COUNT, INTERACTION_TYPE_NAMES, OPERATOR_TYPE_COUNT, OPERATOR_TYPE_NAMES, TYPE_ABSTRACTOR, TYPE_APPLICATOR, TYPE_DELIMITER, TYPE_DUPLICATOR, TYPE_ERASER
 
Method Summary
 Port getArgument()
          Returns its argument Port.
 Port getBody()
          Returns its body Port.
 Port getInput()
          Returns its input Port.
 void reverseOrientation()
          Reverses the orientation of the principal Port.
 
Methods inherited from interface org.xmloperator.lambda.net.model.Operator
canBeReturnedToFactory, cloneOperator, getFactory, getMark, getOperatorType, getPort, getPort0, getPort1, getPort2, getPortCount, interact, isAbstractor, isApplicator, isDelimiter, isDirectionInversed, isDuplicator, isEraser, isReturnedToFactory, returnToFactory, setMark
 

Method Detail

getInput

public Port getInput()
Returns its input Port. It is the principal Port if the orientation is reversed, the first auxiliary Port if the orientation is normal.

Returns:
its input Port.

getBody

public Port getBody()
Returns its body Port. It is the principal Port if the orientation is normal, the first auxiliary Port if the orientation is reversed. This is an output Port.

Returns:
its body Port.

getArgument

public Port getArgument()
Returns its argument Port. This is the second auxiliary Port. This is an output Port.

Returns:
its argument Port.

reverseOrientation

public void reverseOrientation()
Reverses the orientation of the principal Port. Pre-condition: the principal Port is the body Port (normal orientation). Post-condition: the principal Port is the input Port (reversed orientation).

Throws:
java.lang.IllegalStateException - if the orientation is already reversed.