Protege-2000 1.7

edu.stanford.smi.protege.model
Class DefaultSimpleInstance

java.lang.Object
  |
  +--edu.stanford.smi.protege.model.DefaultFrame
        |
        +--edu.stanford.smi.protege.model.DefaultInstance
              |
              +--edu.stanford.smi.protege.model.DefaultSimpleInstance
All Implemented Interfaces:
Comparable, Frame, Instance, SimpleInstance
Direct Known Subclasses:
DefaultKnowledgeBase_Test.TestSimpleInstance

public class DefaultSimpleInstance
extends DefaultInstance
implements SimpleInstance

This is the concrete subclass of DefaultInstance which handles everything but classes, slots, and facets. This is also the class to be subclassed by users of the "java_packages" feature.

Author:
Ray Fergerson

Constructor Summary
DefaultSimpleInstance(KnowledgeBase kb, FrameID id)
          This constructor should be used by classes which use the "java_packages" feature of protege to load instances of user defined classes.
DefaultSimpleInstance(KnowledgeBase kb, String name, Cls cls)
          This constructor may be called by applications that need to construct instances by calling a constructor directly rather than by calling KnowledgeBase.createInstance (for example, JESS).
 
Methods inherited from class edu.stanford.smi.protege.model.DefaultInstance
addInstanceListener, deepCopy, getBrowserText, getDirectType, getOwnFacetValue, getOwnFacetValues, getReachableSimpleInstances, hasDirectType, hasType, removeInstanceListener, setDirectType, toString
 
Methods inherited from class edu.stanford.smi.protege.model.DefaultFrame
addFrameListener, addOwnFacetValue, addOwnSlotValue, areValidOwnSlotValues, compareTo, delete, finalize, getDefaultKnowledgeBase, getDocumentation, getFrameID, getInvalidOwnSlotValuesText, getInvalidOwnSlotValueText, getKnowledgeBase, getName, getOwnSlotAllowsMultipleValues, getOwnSlotAndSubslotValues, getOwnSlotDefaultValues, getOwnSlotFacets, getOwnSlotFacetValues, getOwnSlots, getOwnSlotValue, getOwnSlotValueCount, getOwnSlotValues, getOwnSlotValueType, getProject, getReferences, getReferences, hasOwnSlot, isEditable, isIncluded, isSystem, isValid, isValidOwnSlotValue, isVisible, moveOwnSlotValue, removeFrameID, removeFrameListener, removeOwnSlotValue, setDocumentation, setDocumentation, setEditable, setIncluded, setName, setOwnFacetValue, setOwnFacetValues, setOwnSlotValue, setOwnSlotValues, setSystem, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.stanford.smi.protege.model.Instance
addInstanceListener, getDirectType, getReachableSimpleInstances, hasDirectType, hasType, removeInstanceListener, setDirectType
 
Methods inherited from interface edu.stanford.smi.protege.model.Frame
addFrameListener, addOwnFacetValue, addOwnSlotValue, areValidOwnSlotValues, deepCopy, delete, getBrowserText, getDocumentation, getFrameID, getInvalidOwnSlotValuesText, getInvalidOwnSlotValueText, getKnowledgeBase, getName, getOwnFacetValue, getOwnFacetValues, getOwnSlotAllowsMultipleValues, getOwnSlotAndSubslotValues, getOwnSlotDefaultValues, getOwnSlotFacets, getOwnSlotFacetValues, getOwnSlots, getOwnSlotValue, getOwnSlotValueCount, getOwnSlotValues, getOwnSlotValueType, getProject, getReferences, getReferences, hasOwnSlot, isEditable, isIncluded, isSystem, isValid, isValidOwnSlotValue, isVisible, moveOwnSlotValue, removeFrameListener, removeOwnSlotValue, setDocumentation, setDocumentation, setEditable, setIncluded, setName, setOwnFacetValue, setOwnFacetValues, setOwnSlotValue, setOwnSlotValues, setVisible
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

DefaultSimpleInstance

public DefaultSimpleInstance(KnowledgeBase kb,
                             FrameID id)
This constructor should be used by classes which use the "java_packages" feature of protege to load instances of user defined classes. The User defined classes must have a constructor whose signature (arguments) exactly match this constructor's signature.

DefaultSimpleInstance

public DefaultSimpleInstance(KnowledgeBase kb,
                             String name,
                             Cls cls)
This constructor may be called by applications that need to construct instances by calling a constructor directly rather than by calling KnowledgeBase.createInstance (for example, JESS). All other applications should use the KnowledgeBase.createInstance call to make instances.

Protege-2000 1.7

Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.