public abstract class GapFunction extends Object implements Serializable
execute(org.protempa.proposition.interval.Interval, org.protempa.proposition.interval.Interval)
with the implementation of your function. Gap functions only apply to
AbstractParameter propositions. A default concrete implementation is
provided, SimpleGapFunction, an instance of which is assigned to
the static variable DEFAULT.| Modifier and Type | Field and Description |
|---|---|
static GapFunction |
DEFAULT |
| Constructor and Description |
|---|
GapFunction() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
execute(Interval lhs,
Interval rhs)
Returns whether two intervals have a gap that satisfies
the constraints of the gap function.
|
boolean |
execute(TemporalProposition lhs,
TemporalProposition rhs)
Returns whether two abstract parameters have a gap that satisfies
the constraints of the gap function.
|
public static final GapFunction DEFAULT
public final boolean execute(TemporalProposition lhs, TemporalProposition rhs)
null, this method returns false.lhs - the first AbstractParameter.rhs - the second AbstractParameter.true or false.Copyright © 2012–2017 Emory University. All rights reserved.