org.xmloperator.lambda.net.model
Interface Abstractor

All Superinterfaces:
Operator

public interface Abstractor
extends Operator

Abstractor 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
 ScopeBinder attachScopeBinder()
          If this Abstractor is not already attached to a ScopeBinder then create a ScopeBinder and attach it to the Abstractor.
 void detachScopeBinder()
          Detachs its ScopeBinder, if any.
 Port getBind()
          Returns its bind Port.
 Port getBody()
          Returns its body Port.
 Port getInput()
          Returns its input Port.
 ScopeBinder getScopeBinder()
          Returns the ScopeBinder attached to this Abstractor.
 boolean isIdentity()
          Returns true if the body Port is currently connected to the bind 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.

Returns:
its input Port. This is the principal Port.

getBody

public Port getBody()
Returns its body Port.

Returns:
its body Port. This is the first auxiliary Port. This is an output Port.

getBind

public Port getBind()
Returns its bind Port.

Returns:
its bind Port. This is the second auxiliary Port. This is an input Port.

isIdentity

public boolean isIdentity()
Returns true if the body Port is currently connected to the bind Port.

Returns:
true if the body Port is currently connected to the bind Port.

getScopeBinder

public ScopeBinder getScopeBinder()
Returns the ScopeBinder attached to this Abstractor. If it returns null then this Abstractor is closed, the reciprocal is not true.

Returns:
the ScopeBinder attached to this Abstractor, if any.

attachScopeBinder

public ScopeBinder attachScopeBinder()
If this Abstractor is not already attached to a ScopeBinder then create a ScopeBinder and attach it to the Abstractor.

Returns:
the ScopeBinder attached to this Abstractor.

detachScopeBinder

public void detachScopeBinder()
Detachs its ScopeBinder, if any. If the ScopeBinder is no more attached to any Abstractor then it is returned to the factory.