public class CreatedIndividual extends Individual
Modifier and Type | Field and Description |
---|---|
static int |
BLOCKED
Blocked.
|
java.lang.String |
blockingAncestor
Name of the blocking ancestor.
|
int |
directlyBlocked
Indicates if the individual is directly blocked or not.
|
int |
indirectlyBlocked
Indicates if the individual is indirectly blocked or not.
|
static int |
NOT_BLOCKED
Not blocked.
|
Individual |
parent
Parent of the individual.
|
static int |
UNCHECKED
Unchecked blocking.
|
DEFAULT_NAME
Constructor and Description |
---|
CreatedIndividual(java.lang.String name)
Constructor.
|
CreatedIndividual(java.lang.String name,
Individual parent,
java.lang.String roleName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
CreatedIndividual |
clone()
Gets a copy of an individual.
|
int |
getDepth()
Gets the depth of the individual.
|
Individual |
getParent()
Gets the parent of the individual.
|
java.lang.String |
getParentName()
Gets the name of the parent of the individual.
|
java.lang.String |
getRoleName()
Gets the toString of the role for which the individual is a filler.
|
boolean |
isBlocked(KnowledgeBase kb)
Gets if the individual is blocked with respect to a fuzzy KB.
|
boolean |
isConcrete()
Checks if the individual is concrete.
|
boolean |
isIndirectlyBlocked(KnowledgeBase kb)
Gets if the individual is indirectly blocked with respect to a fuzzy KB.
|
void |
markIndirectlySimpleUnChecked(KnowledgeBase kb)
Marks the subtree of a node as indirectly unblocked
|
void |
setConcreteIndividual()
Sets that the individual is concrete.
|
void |
unblockDirectlyBlocked(KnowledgeBase kb)
Unblocks an indirectly blocked individual.
|
void |
unblockIndirectlyBlocked(KnowledgeBase kb)
Unblocks an indirectly blocked individual.
|
toString
public static final int BLOCKED
public static final int NOT_BLOCKED
public static final int UNCHECKED
public java.lang.String blockingAncestor
public int directlyBlocked
public int indirectlyBlocked
public Individual parent
public CreatedIndividual(java.lang.String name)
name
- Name of the individual.public CreatedIndividual(java.lang.String name, Individual parent, java.lang.String roleName)
name
- Name of the individual.parent
- Parent of the individual.roleName
- Name of the role for which the individual is a filler.public CreatedIndividual clone()
Individual
clone
in class Individual
public int getDepth()
public Individual getParent()
public java.lang.String getParentName()
public java.lang.String getRoleName()
public boolean isIndirectlyBlocked(KnowledgeBase kb)
kb
- A fuzzy KB.public void markIndirectlySimpleUnChecked(KnowledgeBase kb)
kb
- KnowledgeBasepublic boolean isBlocked(KnowledgeBase kb)
kb
- A fuzzy KB.public void unblockDirectlyBlocked(KnowledgeBase kb)
public void unblockIndirectlyBlocked(KnowledgeBase kb)
public void setConcreteIndividual()
public boolean isConcrete()