|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--SemanticNetwork.AttributeInstance
Defines an attribute to be associated with a concept instance to specify spatial properties.
| Field Summary | |
private java.lang.String |
m_attribute_name
|
private java.lang.String |
m_frame_name
|
private boolean |
m_is_inferred
|
private SemanticNetwork |
m_semantic_network
|
private java.lang.String |
m_source_label
|
| Constructor Summary | |
AttributeInstance(java.lang.String source_label,
java.lang.String attribute_name)
Creates a new, non-inferred instance of an attribute instance to be added to a semantic network, thereby associating it with a concept instance. |
|
AttributeInstance(java.lang.String attribute_name,
java.lang.String source_label,
boolean is_inferred)
Creates a new instance of an attribute instance to be added to a semantic network, thereby associating it with a concept instance. |
|
AttributeInstance(java.lang.String attribute_name,
java.lang.String source_label,
java.lang.String frame_name,
boolean is_inferred)
Creates a new instance of an attribute instance to be added to a semantic network, thereby associating it with a concept instance. |
|
| Method Summary | |
java.lang.String |
getAttributeName()
Returns the attribute name of this attribute instance. |
AttributeInstance |
getClone()
Returns a deep clone of this attribute instance. |
java.lang.String |
getFrameName()
Returns the frame name of this attribute instance. |
java.lang.String |
getSourceLabel()
Returns the unique label of the concept instance that roots this attribute instance. |
boolean |
isInferred()
Returns whether this attribute instance is inferred. |
java.lang.String |
serialize()
Returns a serialized representation of this attribute instance. |
protected void |
setSemanticNetwork(SemanticNetwork semantic_network)
Sets the semantic network this attribute instance was added to. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private java.lang.String m_attribute_name
private java.lang.String m_source_label
private java.lang.String m_frame_name
private boolean m_is_inferred
private SemanticNetwork m_semantic_network
| Constructor Detail |
public AttributeInstance(java.lang.String attribute_name,
java.lang.String source_label,
boolean is_inferred)
attribute_name - - the attribute namesource_label - - the source labelis_inferred - - whether this attribute instance is inferredConceptInstance,
SemanticNetwork.addAttributeInstance(SemanticNetwork.AttributeInstance)
public AttributeInstance(java.lang.String source_label,
java.lang.String attribute_name)
source_label - - the source labelattribute_name - - the attribute nameConceptInstance,
SemanticNetwork.addAttributeInstance(SemanticNetwork.AttributeInstance)
public AttributeInstance(java.lang.String attribute_name,
java.lang.String source_label,
java.lang.String frame_name,
boolean is_inferred)
attribute_name - - the attribute namesource_label - - the source labelframe_name - - the frame this attribute is associated withis_inferred - - whether this attribute instance is inferredgetFrameName(),
ConceptInstance,
SemanticNetwork.addAttributeInstance(SemanticNetwork.AttributeInstance)| Method Detail |
public java.lang.String getAttributeName()
public AttributeInstance getClone()
public java.lang.String getFrameName()
public java.lang.String getSourceLabel()
public boolean isInferred()
public java.lang.String serialize()
protected void setSemanticNetwork(SemanticNetwork semantic_network)
semantic_network - - the semantic networkpublic java.lang.String toString()
toString in class java.lang.ObjectSupport.toPrettyString(java.lang.String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||