com.articulate.delphi.Cell Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sigma-component Show documentation
Show all versions of sigma-component Show documentation
Sigma knowledge engineering system is an system for developing, viewing and debugging theories in first
order logic. It works with Knowledge Interchange Format (KIF) and is optimized for the Suggested Upper Merged
Ontology (SUMO) www.ontologyportal.org.
/** This code is copyright Articulate Software (c) 2005.
This software is released under the GNU Public License .
Users of this code also consent, by use of this code, to credit Articulate Software
and Ted Gordon in any writings, briefings, publications, presentations, or
other representations of any software which incorporates, builds on, or uses this
code. */
package com.articulate.delphi;
import java.util.*;
import java.io.*;
import java.text.*;
import com.articulate.sigma.*;
/** *****************************************************************
* A class that contains information about a cell in a Delphi matrix.
*/
public class Cell {
/** Whether the cell value is an outlier compared to the group. */
public boolean outlier;
/** The String representation of an integer value, signifying the
* degree to which a given criterion supports a given decision. */
public String value = null;
/** The explanation user's explanation for choosing a given value. */
public String justification = null;
/** *****************************************************************
* The justification String is the body of the tag.
*/
public String toXML() {
StringBuffer result = new StringBuffer();
result.append("\n");
result.append(justification);
result.append(" | \n");
return result.toString();
}
/** *****************************************************************
* Read in an XML input
*/
public void fromXML(BasicXMLelement xml) {
value = (String) xml.attributes.get("value");
String outlierStr = (String) xml.attributes.get("outlier");
justification = xml.contents;
}
}
|