org.xmloperator.lambda.net.model
Interface IndexedOperator

All Superinterfaces:
Operator
All Known Subinterfaces:
Delimiter, Duplicator

public interface IndexedOperator
extends Operator

Operator with an index. The Delimiter and the Duplicator are indexed. The other Operators are not.


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
 int getIndex()
          Returns the index of this Operator.
 void incrementIndex()
          Increment the index of this Operator.
 
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

getIndex

public int getIndex()
Returns the index of this Operator. It is always 0 if the orientation is reversed.

Returns:
the index of this Operator.

incrementIndex

public void incrementIndex()
Increment the index of this Operator.

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