vs.communication
Class RDFtriple

java.lang.Object
  extended by vs.communication.RDFtriple
All Implemented Interfaces:
jade.content.Concept, jade.content.Term, java.io.Serializable

public class RDFtriple
extends java.lang.Object
implements jade.content.Concept

Represents a fact in the form of an RDF triple (NOTE: contains code to pretty print, and to compare triples for equality) Protege name: RDFtriple

Version:
2008/10/29, 15:01:49
Author:
ontology bean generator
See Also:
Serialized Form

Constructor Summary
RDFtriple()
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Following the steps from http://java.sun.com/developer/Books/effectivejava/Chapter3.pdf It must be symmetric, transitive and consistent
 java.lang.String getObject()
           
 java.lang.String getPredicate()
           
 java.lang.String getSubject()
           
 boolean getTruth()
           
 int hashCode()
          Return the sum of the hashcodes of the important parts. hashCode must be overridden when equals() is used.
 void setObject(java.lang.String value)
           
 void setPredicate(java.lang.String value)
           
 void setSubject(java.lang.String value)
           
 void setTruth(boolean value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RDFtriple

public RDFtriple()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Following the steps from http://java.sun.com/developer/Books/effectivejava/Chapter3.pdf It must be symmetric, transitive and consistent

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Return the sum of the hashcodes of the important parts. hashCode must be overridden when equals() is used.

Overrides:
hashCode in class java.lang.Object

setObject

public void setObject(java.lang.String value)

getObject

public java.lang.String getObject()

setTruth

public void setTruth(boolean value)

getTruth

public boolean getTruth()

setPredicate

public void setPredicate(java.lang.String value)

getPredicate

public java.lang.String getPredicate()

setSubject

public void setSubject(java.lang.String value)

getSubject

public java.lang.String getSubject()