public final class AtLeastNColumnSpec extends AbstractTableColumnSpec
| Constructor and Description |
|---|
AtLeastNColumnSpec(int n,
Link[] links) |
AtLeastNColumnSpec(String columnNameOverride,
int n,
Link[] links) |
AtLeastNColumnSpec(String columnNameOverride,
int n,
Link[] links,
String trueOutput,
String falseOutput) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
columnNames(KnowledgeSource knowledgeSource)
Gets the names of the columns representing one instance of a
proposition or property.
|
void |
columnValues(String key,
Proposition proposition,
Map<Proposition,List<Proposition>> forwardDerivations,
Map<Proposition,List<Proposition>> backwardDerivations,
Map<UniqueId,Proposition> references,
KnowledgeSourceCache ksCache,
TabularWriter writer)
Gets the values of the specified propositions or properties for
one row of data.
|
boolean |
equals(Object obj) |
String |
getColumnNameOverride() |
String |
getFalseOutput() |
String[] |
getInferredPropositionIds(KnowledgeSource knowledgeSource,
String[] inPropIds)
Infers the ids of the propositions corresponding to the contents of this
column.
|
Link[] |
getLinks() |
int |
getN() |
String |
getTrueOutput() |
int |
hashCode() |
void |
validate(KnowledgeSource knowledgeSource)
Validates the fields of this column specification against the
knowledge source.
|
public AtLeastNColumnSpec(int n,
Link[] links)
public String[] columnNames(KnowledgeSource knowledgeSource) throws KnowledgeSourceReadException
TableColumnSpecknowledgeSource - the active KnowledgeSource.String[] of column names.KnowledgeSourceReadException - if an attempt at reading from
the knowledge source failed.public void columnValues(String key, Proposition proposition, Map<Proposition,List<Proposition>> forwardDerivations, Map<Proposition,List<Proposition>> backwardDerivations, Map<UniqueId,Proposition> references, KnowledgeSourceCache ksCache, TabularWriter writer) throws TabularWriterException
TableColumnSpeckey - a key id String.proposition - a List for the specified
key with the specified proposition id.TabularWriterExceptionpublic void validate(KnowledgeSource knowledgeSource) throws TableColumnSpecValidationFailedException, KnowledgeSourceReadException
TableColumnSpecknowledgeSource - a KnowledgeSource. Guaranteed not
null.KnowledgeSourceReadException - if the knowledge source could
not be read.TableColumnSpecValidationFailedExceptionpublic int getN()
public Link[] getLinks()
public String getColumnNameOverride()
public String getTrueOutput()
public String getFalseOutput()
public String[] getInferredPropositionIds(KnowledgeSource knowledgeSource, String[] inPropIds) throws KnowledgeSourceReadException
TableColumnSpecStrings. Guaranteed not
null.KnowledgeSourceReadExceptionCopyright © 2012–2017 Emory University. All rights reserved.