Serializable
, Plugin
public class Abbreviation extends Object implements Plugin
Modifier and Type | Class | Description |
---|---|---|
static class |
Abbreviation.Abbreviate |
Operator that give a CompoundTerm an atomic name
|
Modifier and Type | Field | Description |
---|---|---|
int |
abbreviationComplexityMin |
|
double |
abbreviationProbability |
|
double |
abbreviationQualityMin |
|
EventEmitter.EventObserver |
obs |
Constructor | Description |
---|---|
Abbreviation() |
|
Abbreviation(double abbreviationProbability,
int abbreviationComplexityMin,
double abbreviationQualityMin) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
canAbbreviate(Task task) |
|
double |
getAbbreviationComplexityMin() |
|
double |
getAbbreviationProbability() |
|
double |
getAbbreviationQualityMin() |
|
void |
setAbbreviationComplexityMin(double val) |
|
void |
setAbbreviationProbability(double val) |
|
void |
setAbbreviationQualityMin(double val) |
|
boolean |
setEnabled(Nar n,
boolean enabled) |
called when plugin is activated (enabled = true) / deactivated (enabled=false)
|
public EventEmitter.EventObserver obs
public volatile double abbreviationProbability
public volatile int abbreviationComplexityMin
public volatile double abbreviationQualityMin
public Abbreviation()
public Abbreviation(double abbreviationProbability, int abbreviationComplexityMin, double abbreviationQualityMin)
public void setAbbreviationProbability(double val)
public double getAbbreviationProbability()
public void setAbbreviationComplexityMin(double val)
public double getAbbreviationComplexityMin()
public void setAbbreviationQualityMin(double val)
public double getAbbreviationQualityMin()
public boolean canAbbreviate(Task task)
public boolean setEnabled(Nar n, boolean enabled)
Plugin
setEnabled
in interface Plugin
Copyright © 2020 OpenNARS. All rights reserved.