public final class IntervalEndsOperatorImplementation extends java.lang.Object implements IntervalOperatorImplementation
Constructor and Description |
---|
IntervalEndsOperatorImplementation(IntervalTypeImplementation intervalTypeImplementation)
Creates the implementation object
|
Modifier and Type | Method and Description |
---|---|
ValueBuffer |
executeOperator(java.util.LinkedList<ValueBuffer> args)
The ENDS operator returns TRUE if both interval arguments have an equal end point, and the begin point of the former is not before that of the second.
|
java.lang.String[] |
getArgumentTypeNames()
ENDS takes two arguments that are both of the same interval type
|
TypeDeclaration |
getReturnTypeDeclaration()
Gets the full type declaration of the type of the return value.
|
java.lang.String |
getReturnTypeName()
The return type is BOOLEAN
|
java.lang.String |
getSignature()
Gets the name of the operator implemented by this implementation object
|
boolean |
isDeterministic()
Tells whether the operator is deterministic with respect to the arguments of its invocations.
|
void |
readExternal(java.io.ObjectInput in) |
void |
writeExternal(java.io.ObjectOutput out) |
public IntervalEndsOperatorImplementation(IntervalTypeImplementation intervalTypeImplementation)
intervalTypeImplementation
- the underlying ordered base type's ordering operatorpublic ValueBuffer executeOperator(java.util.LinkedList<ValueBuffer> args)
Cases | (meaning) | ENDS operator outcome |
Any argument is o (the empty interval) | b1 == e1 || b2 == e2 | FALSE |
Allen's FINISHES operator | b1 > b2 && e1 == e2 | TRUE |
Allen's EQUALS operator | b1 == b2 && e1 == e2 | TRUE |
All other Allen operators | FALSE |
executeOperator
in interface OperatorImplementation_V0104
args
- the argument list. The list must hold as many ValueBuffer objects as there are arguments to the operator, and each ValueBuffer object holds a value for some argument to the operator. ValueBuffer objects on the list must appear in the same order as the operator argument declarations. Implementations have the option, but are not required, to do a check the conformance of the argument list (the argument count, notably) to the operator signature.public java.lang.String[] getArgumentTypeNames()
getArgumentTypeNames
in interface OperatorImplementation_V0104
public TypeDeclaration getReturnTypeDeclaration()
OperatorImplementation_V0105
getReturnTypeDeclaration
in interface OperatorImplementation_V0105
public java.lang.String getReturnTypeName()
getReturnTypeName
in interface OperatorImplementation_V0104
public java.lang.String getSignature()
OperatorImplementation_V0104
getSignature
in interface OperatorImplementation_V0104
public boolean isDeterministic()
OperatorImplementation_V0104
isDeterministic
in interface OperatorImplementation_V0104
public void readExternal(java.io.ObjectInput in) throws java.io.IOException
readExternal
in interface java.io.Externalizable
java.io.IOException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException