edu.lehigh.swat.hawk.storage.simplememory
Class Assertion

java.lang.Object
  extended by edu.lehigh.swat.hawk.storage.simplememory.Assertion
All Implemented Interfaces:
Assertion, java.io.Serializable
Direct Known Subclasses:
Annotation, Assertion

public class Assertion
extends java.lang.Object
implements Assertion, java.io.Serializable

A simple implementation of core.Assertion in memory.

See Also:
Serialized Form

Constructor Summary
Assertion(ObjectId sub, ObjectId pre, ObjectId obj)
          Constructor
 
Method Summary
 ObjectId getObject()
          get the obejct
 ObjectId getPredicate()
          get the predicate
 ObjectId getSubject()
          get the subejct
 void setObject(ObjectId o)
          set the object
 void setPredicate(ObjectId p)
          set the predicate
 void setSubject(ObjectId s)
          set the subject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Assertion

public Assertion(ObjectId sub,
                 ObjectId pre,
                 ObjectId obj)
Constructor

Method Detail

getSubject

public ObjectId getSubject()
get the subejct

Specified by:
getSubject in interface Assertion

setSubject

public void setSubject(ObjectId s)
set the subject

Specified by:
setSubject in interface Assertion

getObject

public ObjectId getObject()
get the obejct

Specified by:
getObject in interface Assertion

setObject

public void setObject(ObjectId o)
set the object

Specified by:
setObject in interface Assertion

getPredicate

public ObjectId getPredicate()
get the predicate

Specified by:
getPredicate in interface Assertion

setPredicate

public void setPredicate(ObjectId p)
set the predicate

Specified by:
setPredicate in interface Assertion