fuzzydl
Class Individual

java.lang.Object
  extended by fuzzydl.Individual
Direct Known Subclasses:
CreatedIndividual

public class Individual
extends java.lang.Object


Field Summary
 java.util.Hashtable<java.lang.String,java.util.ArrayList<AtomicAssertion>> atomicAssertions
          Atomic assertions.
 java.util.Hashtable<java.lang.String,java.util.ArrayList<AtomicAssertion>> compAtomicAssertions
          Complemented atomic assertions.
static java.lang.String DEFAULT_NAME
          Default prefix for individual names.
 java.util.Hashtable<java.lang.String,java.util.HashSet<java.lang.String>> fillersToShow
          Fillets to show
protected  java.lang.String name
          Name of the individual
 java.util.Hashtable<java.lang.String,java.util.ArrayList<NegativeRelation>> negativeRoleRelations
          Negative role relations.
protected  java.util.ArrayList<RepresentativeIndividual> representatives
          Array of representative individuals
 java.util.Hashtable<java.lang.String,java.util.ArrayList<Relation>> roleRelations
          Role relations.
 java.util.Hashtable<java.lang.String,java.util.ArrayList<Restriction>> roleRestrictions
          Role restrictions.
 java.util.Hashtable<java.lang.String,java.util.ArrayList<Relation>> tempRoleRelations
          Temporary list of role relations.
 
Constructor Summary
Individual(java.lang.String name)
           
 
Method Summary
protected  void addFillerToShow(java.lang.String role, java.util.HashSet<java.lang.String> c)
           
 void addNegativeRelation(java.lang.String roleName, Individual a, Degree degree)
          Adds a negative relation to the individual.
 Individual clone()
           
protected  void solveRelationRestriction(Relation rel, Restriction restric, KnowledgeBase kb)
          Apply a universal restriction to a relation of the individual.
 java.lang.String toString()
          Gets the name of the individual.
protected  void unblock(KnowledgeBase kb)
          Unblock the individual.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_NAME

public static final java.lang.String DEFAULT_NAME
Default prefix for individual names.

See Also:
Constant Field Values

atomicAssertions

public java.util.Hashtable<java.lang.String,java.util.ArrayList<AtomicAssertion>> atomicAssertions
Atomic assertions.


compAtomicAssertions

public java.util.Hashtable<java.lang.String,java.util.ArrayList<AtomicAssertion>> compAtomicAssertions
Complemented atomic assertions.


roleRestrictions

public java.util.Hashtable<java.lang.String,java.util.ArrayList<Restriction>> roleRestrictions
Role restrictions.


roleRelations

public java.util.Hashtable<java.lang.String,java.util.ArrayList<Relation>> roleRelations
Role relations.


tempRoleRelations

public java.util.Hashtable<java.lang.String,java.util.ArrayList<Relation>> tempRoleRelations
Temporary list of role relations.


negativeRoleRelations

public java.util.Hashtable<java.lang.String,java.util.ArrayList<NegativeRelation>> negativeRoleRelations
Negative role relations.


fillersToShow

public java.util.Hashtable<java.lang.String,java.util.HashSet<java.lang.String>> fillersToShow
Fillets to show


representatives

protected java.util.ArrayList<RepresentativeIndividual> representatives
Array of representative individuals


name

protected java.lang.String name
Name of the individual

Constructor Detail

Individual

public Individual(java.lang.String name)
Method Detail

clone

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

toString

public java.lang.String toString()
Gets the name of the individual.

Overrides:
toString in class java.lang.Object
Returns:
Name of the individual.

addNegativeRelation

public void addNegativeRelation(java.lang.String roleName,
                                Individual a,
                                Degree degree)
Adds a negative relation to the individual.

Parameters:
roleName - Role of the relation.
a - Object of the relation.
degree - Lower bound for the degree.

solveRelationRestriction

protected void solveRelationRestriction(Relation rel,
                                        Restriction restric,
                                        KnowledgeBase kb)
Apply a universal restriction to a relation of the individual.

Parameters:
rel - A relation.
restric - A restriction.
kb - Reference fuzzy KB.

addFillerToShow

protected void addFillerToShow(java.lang.String role,
                               java.util.HashSet<java.lang.String> c)

unblock

protected void unblock(KnowledgeBase kb)
Unblock the individual.

Parameters:
kb - Reference fuzzy KB.