fuzzydl.milp
Class ShowVariablesHelper

java.lang.Object
  extended by fuzzydl.milp.ShowVariablesHelper

public class ShowVariablesHelper
extends java.lang.Object

Manages variables shown to the user.


Constructor Summary
ShowVariablesHelper()
           
 
Method Summary
 void addAbstractFillerToShow(java.lang.String roleName, java.util.HashSet<java.lang.String> hs)
          Shows the membership degree to some atomic concepts of the fillers of an abstract role.
 void addAbstractFillerToShow(java.lang.String roleName, Individual i, java.util.HashSet<java.lang.String> hs)
          Shows the membership degree to some atomic concepts of the fillers of an abstract role for some individual.
 void addConceptToShow(java.lang.String concName)
          Show membership degree of every instance of an atomic concept.
 void addConcreteFillerToShow(java.lang.String fName)
          Shows the value of the fillers of a concrete feature.
 void addConcreteFillerToShow(java.lang.String fName, Individual i)
          Shows the value of the fillers of a concrete feature for an individual.
 void addConcreteFillerToShow(java.lang.String fName, Individual i, java.util.ArrayList<FuzzyConcreteConcept> ar)
          Shows the membership degree to some fuzzy concrete concepts (representing linguistic labels of the feature), for the fillers of a concrete feature of an individual.
 void addIndividualToShow(java.lang.String indName)
          Shows the value of an individual to every atomic concept.
 void addVariable(Variable var, java.lang.String nameToShow)
          Add a variable to shown, showing it with a given name.
 ShowVariablesHelper clone()
           
 boolean getAbstractFillerContains(java.lang.String roleName, java.lang.String indName)
          Returns whether a given individuals is marked for showing every filler of an abstract role.
 boolean getConceptContains(java.lang.String conceptName)
          Returns whether an atomic concept is marked to show the membership degree of every individual.
 java.util.HashSet<java.lang.String> getConceptsFor(java.lang.String roleName)
          Given an abstract role, gets the set of atomic concepts marked to show the membership degree of every filler of the role.
 boolean getConcreteFillerContains(java.lang.String fName, java.lang.String indName)
          Returns whether a given individuals is marked for showing every filler of a concrete feature.
 boolean getIndividualContains(java.lang.String indName)
          Gets whether an individual is marked to be shown or not.
 java.util.ArrayList<FuzzyConcreteConcept> getLabels(java.lang.String varName)
          Gets the fuzzy concrete concepts marked to be shown for a variable.
 java.lang.String getName(Variable var)
          Gets the name of a variable.
 java.util.Collection<Variable> getVariables()
          Gets the variables to be shown.
 boolean showVariable(Variable var)
          Shows the value of a variable.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShowVariablesHelper

public ShowVariablesHelper()
Method Detail

clone

public ShowVariablesHelper clone()
Overrides:
clone in class java.lang.Object

getName

public java.lang.String getName(Variable var)
Gets the name of a variable.

Parameters:
var - Variable.
Returns:
Name of the variable.

showVariable

public boolean showVariable(Variable var)
Shows the value of a variable.

Parameters:
var - Variable.
Returns:
Return whether the variable exists or not.

addIndividualToShow

public void addIndividualToShow(java.lang.String indName)
Shows the value of an individual to every atomic concept.

Parameters:
indName - Name of the individual.

getIndividualContains

public boolean getIndividualContains(java.lang.String indName)
Gets whether an individual is marked to be shown or not.

Parameters:
indName - Name of the individual.
Returns:
Whether the individual is marked to be shown or not.

addConcreteFillerToShow

public void addConcreteFillerToShow(java.lang.String fName)
Shows the value of the fillers of a concrete feature.

Parameters:
fName - Name of the concrete feature.

addConcreteFillerToShow

public void addConcreteFillerToShow(java.lang.String fName,
                                    Individual i)
Shows the value of the fillers of a concrete feature for an individual.

Parameters:
fName - Name of the concrete feature.
i - Individual.

addConcreteFillerToShow

public void addConcreteFillerToShow(java.lang.String fName,
                                    Individual i,
                                    java.util.ArrayList<FuzzyConcreteConcept> ar)
Shows the membership degree to some fuzzy concrete concepts (representing linguistic labels of the feature), for the fillers of a concrete feature of an individual.

Parameters:
fName - Name of the concrete feature.
i - Individual.
ar - Array of fuzzy concrete concepts.

getLabels

public java.util.ArrayList<FuzzyConcreteConcept> getLabels(java.lang.String varName)
Gets the fuzzy concrete concepts marked to be shown for a variable.

Parameters:
varName - Name of the variable, e.g. feature1(ind1).
Returns:
Array (possibly empty) f fuzzy concrete concepts.

addAbstractFillerToShow

public void addAbstractFillerToShow(java.lang.String roleName,
                                    java.util.HashSet<java.lang.String> hs)
Shows the membership degree to some atomic concepts of the fillers of an abstract role.

Parameters:
roleName - Name of of an abstract role.
hs - Atomic concepts to be shown.

addAbstractFillerToShow

public void addAbstractFillerToShow(java.lang.String roleName,
                                    Individual i,
                                    java.util.HashSet<java.lang.String> hs)
Shows the membership degree to some atomic concepts of the fillers of an abstract role for some individual.

Parameters:
roleName - Name of of an abstract role.
i - Individual.
hs - Atomic concepts to be shown.

getConcreteFillerContains

public boolean getConcreteFillerContains(java.lang.String fName,
                                         java.lang.String indName)
Returns whether a given individuals is marked for showing every filler of a concrete feature.

Parameters:
fName - Name of the concrete feature.
indName - Name of the individual.
Returns:
Whether the individuals is marked for showing every filler of fName.

getAbstractFillerContains

public boolean getAbstractFillerContains(java.lang.String roleName,
                                         java.lang.String indName)
Returns whether a given individuals is marked for showing every filler of an abstract role.

Parameters:
roleName - Name of the abstract role.
indName - Name of the individual.
Returns:
Whether the individuals is marked for showing every filler of roleName.

addConceptToShow

public void addConceptToShow(java.lang.String concName)
Show membership degree of every instance of an atomic concept.

Parameters:
concName - Name of atomic concept.

getConceptContains

public boolean getConceptContains(java.lang.String conceptName)
Returns whether an atomic concept is marked to show the membership degree of every individual.

Parameters:
conceptName - Name of atomic concept.

addVariable

public void addVariable(Variable var,
                        java.lang.String nameToShow)
Add a variable to shown, showing it with a given name.

Parameters:
var - Variable.
nameToShow - Name of the variable when shown.

getConceptsFor

public java.util.HashSet<java.lang.String> getConceptsFor(java.lang.String roleName)
Given an abstract role, gets the set of atomic concepts marked to show the membership degree of every filler of the role.

Parameters:
roleName - Name of an abstract role.
Returns:
Set of atomic concepts marked to show the membership degree of every filler of the role.

getVariables

public java.util.Collection<Variable> getVariables()
Gets the variables to be shown.

Returns:
Variables to be shown.