public final class LowLevelAbstractionDefinition extends AbstractAbstractionDefinition implements ParameterDefinition
changes, children, CHILDREN_PROPERTY| Constructor and Description |
|---|
LowLevelAbstractionDefinition(String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(PropositionDefinitionVisitor processor)
Performs some processing on a proposition definition.
|
void |
acceptChecked(PropositionDefinitionCheckedVisitor processor)
Performs some processing on this proposition definition.
|
boolean |
addPrimitiveParameterId(String paramId)
Adds a primitive parameter from which this abstraction is inferred.
|
boolean |
addValueDefinition(LowLevelAbstractionValueDefinition d) |
Set<String> |
getAbstractedFrom()
Returns all proposition ids from which this abstract parameter is
abstracted.
|
String |
getAlgorithmId() |
String |
getContextId() |
String |
getId() |
Integer |
getMaximumDuration() |
Unit |
getMaximumDurationUnits() |
Integer |
getMaximumGapBetweenValues()
Returns the minimum distance between instances of this
AbstractionDefinition that are concatenable. |
Unit |
getMaximumGapBetweenValuesUnits() |
int |
getMaximumNumberOfValues()
Sets the maximum number of sequential values to process.
|
int |
getMaxOverlapping()
Return the value of the max-overlapping restart search directive.
|
Integer |
getMinimumDuration() |
Unit |
getMinimumDurationUnits() |
Integer |
getMinimumGapBetweenValues() |
Unit |
getMinimumGapBetweenValuesUnits() |
int |
getMinimumNumberOfValues()
Gets the minimum number of sequential values to process.
|
int |
getSkip()
Return the value of the skip restart search directive.
|
int |
getSkipEnd()
Return the value of the skip-end restart search directive.
|
int |
getSkipStart()
Return the value of the skip-start restart search directive.
|
SlidingWindowWidthMode |
getSlidingWindowWidthMode()
Gets the sliding window width mode.
|
List<LowLevelAbstractionValueDefinition> |
getValueDefinitions() |
LowLevelAbstractionValueDefinition[] |
getValueDefinitions(String id) |
ValueType |
getValueType() |
boolean |
isConcatenable()
Returns whether this type of low-level abstraction is concatenable.
|
boolean |
isSolid()
Returns whether intervals of this type are solid, i.e., never hold over
properly overlapping intervals.
|
protected void |
recalculateChildren() |
boolean |
removePrimitiveParameterId(String paramId)
Removes a primitive parameter from which this abstraction is inferred.
|
void |
reset()
Resets this proposition definition to default values.
|
void |
setAlgorithmId(String algorithmId) |
void |
setConcatenable(boolean concatenable)
Sets whether this type of low-level abstraction is concatenable.
|
void |
setContextId(String contextId) |
void |
setMaximumDuration(Integer maxDuration) |
void |
setMaximumDurationUnits(Unit maxDurationUnits) |
void |
setMaximumGapBetweenValues(Integer maximumGapBetweenValues)
Sets the maximum distance between instances of this
AbstractionDefinition that are contatenable. |
void |
setMaximumGapBetweenValuesUnits(Unit units) |
void |
setMaximumNumberOfValues(int l)
Sets the maximum number of sequential values to process.
|
void |
setMaxOverlapping(int arg)
Enable the max-overlapping restart search directive.
|
void |
setMinimumDuration(Integer minDuration) |
void |
setMinimumDurationUnits(Unit minDurationUnits) |
void |
setMinimumGapBetweenValues(Integer minimumGapBetweenValues)
Sets the minimum distance between instances of this
AbstractionDefinition that are concatenable. |
void |
setMinimumGapBetweenValuesUnits(Unit units) |
void |
setMinimumNumberOfValues(int l)
Sets the minimum number of sequential values to process.
|
void |
setSkip(int arg)
Enable the skip restart search directive.
|
void |
setSkipEnd(int arg)
Enable the skip-end restart search directive.
|
void |
setSkipStart(int arg)
Enable the skip-start restart search directive.
|
void |
setSlidingWindowWidthMode(SlidingWindowWidthMode slidingWindowWidthMode)
Sets the sliding window width mode.
|
void |
setValueType(ValueType c) |
String |
toString() |
void |
unsetMaxOverlapping()
Disable the max-overlapping restart search directive.
|
void |
unsetSkip()
Disable the skip restart search directive.
|
void |
unsetSkipEnd()
Disable the skip-end restart search directive.
|
void |
unsetSkipStart()
Disable the skip-start restart search directive.
|
getGapFunction, setGapFunctionaddPropertyChangeListener, addPropertyChangeListener, attribute, getAbbreviatedDisplayName, getAccessed, getAttributes, getChildren, getCreated, getDescription, getDisplayName, getDownloaded, getId, getInDataSource, getInverseIsA, getPropertyDefinitions, getPropositionId, getReferenceDefinitions, getSourceId, getTermIds, getUpdated, getVersion, propertyDefinition, referenceDefinition, removePropertyChangeListener, removePropertyChangeListener, setAbbreviatedDisplayName, setAccessed, setAttributes, setCreated, setDescription, setDisplayName, setDownloaded, setInDataSource, setInverseIsA, setPropertyDefinitions, setPropositionId, setReferenceDefinitions, setSourceId, setTermIds, setUpdated, setVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, attribute, getAbbreviatedDisplayName, getAccessed, getAttributes, getChildren, getCreated, getDescription, getDisplayName, getDownloaded, getId, getInDataSource, getInverseIsA, getPropertyDefinitions, getPropositionId, getReferenceDefinitions, getSourceId, getTermIds, getUpdated, getVersion, propertyDefinition, referenceDefinition, removePropertyChangeListener, removePropertyChangeListenergetDescriptionpublic LowLevelAbstractionDefinition(String id)
public final Integer getMinimumGapBetweenValues()
public final Unit getMinimumGapBetweenValuesUnits()
public final void setMinimumGapBetweenValues(Integer minimumGapBetweenValues)
AbstractionDefinition that are concatenable. The default
value is Weight.ZERO.public final void setMinimumGapBetweenValuesUnits(Unit units)
public final Integer getMaximumGapBetweenValues()
AbstractionDefinition that are concatenable. The default
value is Weight.ZERO.Weight object.public final Unit getMaximumGapBetweenValuesUnits()
public final void setMaximumGapBetweenValues(Integer maximumGapBetweenValues)
AbstractionDefinition that are contatenable. The default
value is Weight.POS_INFINITY.public final void setMaximumGapBetweenValuesUnits(Unit units)
public final void setMaximumNumberOfValues(int l)
l - an int. If < 0, use the equivalent field in
the algorithm.Algorithm.getMaximumNumberOfValues()public final int getMaximumNumberOfValues()
int if < 0, use the equivalent field in the
algorithm.Algorithm.getMaximumNumberOfValues()public final void setMinimumNumberOfValues(int l)
Algorithm.getMinimumNumberOfValues()public final int getMinimumNumberOfValues()
int if < 0, use the equivalent field in the
algorithm.Algorithm.getMinimumNumberOfValues()public final void setSkipStart(int arg)
arg more than the
starting value of the matched segment.arg - the value of the skip-start search directive, must be > 0.public final void unsetSkipStart()
public final int getSkipStart()
public final void setSkipEnd(int arg)
arg more than the
ending value of the matched segment.arg - the value of the skip-end search directive, must be > 0.public final void unsetSkipEnd()
public final int getSkipEnd()
public final void setSkip(int arg)
arg more than the
ending value of the matched segment.arg - the value of the skip restart search directive, must be > 0.public final void unsetSkip()
public final int getSkip()
public final void setMaxOverlapping(int arg)
arg - 1 less than the ending value of the matched segment.arg - the value of the max-overlapping restart search directive,
must be > 0.public final void unsetMaxOverlapping()
public final int getMaxOverlapping()
public SlidingWindowWidthMode getSlidingWindowWidthMode()
SlidingWindowWidthMode.ALL.SlidingWindowWidthMode object (will never be
null).public void setSlidingWindowWidthMode(SlidingWindowWidthMode slidingWindowWidthMode)
algorithmId is
null, a value of SlidingWindowWidthMode.DEFAULT
is not permitted.slidingWindowWidthMode - a SlidingWindowWidthMode. Cannot be null.public boolean addValueDefinition(LowLevelAbstractionValueDefinition d)
public List<LowLevelAbstractionValueDefinition> getValueDefinitions()
public LowLevelAbstractionValueDefinition[] getValueDefinitions(String id)
public boolean addPrimitiveParameterId(String paramId)
paramId - a primitive parameter id String.true if adding the parameter id was successful,
false otherwise (e.g., paramId was
null).public boolean removePrimitiveParameterId(String paramId)
paramId - a primitive parameter id String.true if removingg the parameter id was successful,
false otherwise (e.g., paramId was
null or not previously added to this abstraction
definition).public Set<String> getAbstractedFrom()
AbstractionDefinitiongetAbstractedFrom in interface AbstractionDefinitionSet of proposition id
Strings. Guaranteed not null.public void setValueType(ValueType c)
public ValueType getValueType()
getValueType in interface ParameterDefinitionpublic void accept(PropositionDefinitionVisitor processor)
PropositionDefinitionVisitableaccept in interface PropositionDefinitionVisitablepublic void acceptChecked(PropositionDefinitionCheckedVisitor processor) throws ProtempaException
PropositionDefinitionCheckedVisitableacceptChecked in interface PropositionDefinitionCheckedVisitableProtempaExceptionpublic final void setMinimumDuration(Integer minDuration)
public final void setMinimumDurationUnits(Unit minDurationUnits)
public final void setMaximumDuration(Integer maxDuration)
public final void setMaximumDurationUnits(Unit maxDurationUnits)
public final Integer getMinimumDuration()
public final Unit getMinimumDurationUnits()
public final Integer getMaximumDuration()
public final Unit getMaximumDurationUnits()
public String getAlgorithmId()
public void setAlgorithmId(String algorithmId)
public void reset()
AbstractPropositionDefinitionreset in class AbstractAbstractionDefinitionpublic void setConcatenable(boolean concatenable)
concatenable - true if concatenable, false if
not.public boolean isConcatenable()
isConcatenable in interface PropositionDefinitiontrue if concatenable, false if not.public boolean isSolid()
isSolid in interface PropositionDefinitiontrue.public String getContextId()
public void setContextId(String contextId)
protected void recalculateChildren()
recalculateChildren in class AbstractPropositionDefinitionpublic String toString()
toString in class AbstractAbstractionDefinitionpublic String getId()
Copyright © 2012–2018 Emory University. All rights reserved.