org.semanticweb.owl.impl.model
Class OWLFrameImpl

java.lang.Object
  |
  +--org.semanticweb.owl.impl.model.OWLObjectImpl
        |
        +--org.semanticweb.owl.impl.model.OWLFrameImpl
All Implemented Interfaces:
Cloneable, OWLDescription, OWLFrame, OWLObject, Serializable

public class OWLFrameImpl
extends OWLObjectImpl
implements OWLFrame

A frame packages up a top-level description of a class, and consists of a number of superclasses and a number of restrictions. Although OWLFrame doesn't have a direct counterpart in OWL (or in DAML+OIL), the notion of a frame was a particularly useful one in the OilEd implementation as it provides a user-friendly view on ontology descriptions. The semantics of a frame is simply the conjunction of the superclass descriptions and restrictions.

Version:
$Id: OWLFrameImpl.java,v 1.1.1.1 2003/10/14 17:10:14 sean_bechhofer Exp $
See Also:
Serialized Form

Constructor Summary
OWLFrameImpl(OWLDataFactoryImpl factory, Set superClasses, Set restrictions)
           
 
Method Summary
 void accept(OWLDescriptionVisitor visitor)
          Accept a visit from a visitor
 void accept(OWLObjectVisitor visitor)
          Accept a visit from a visitor
 Set getRestrictions()
          Returns a collection of OWLRestrictions.
 Set getSuperclasses()
          Returns a collection of OWLDescriptions.
 
Methods inherited from class org.semanticweb.owl.impl.model.OWLObjectImpl
clone, getAnnotations, getAnnotations, getContainedObjects, getMetadata, getOWLConnection, getOWLDataFactory
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.semanticweb.owl.model.OWLObject
clone, getAnnotations, getAnnotations, getContainedObjects, getMetadata, getOWLConnection, getOWLDataFactory
 

Constructor Detail

OWLFrameImpl

public OWLFrameImpl(OWLDataFactoryImpl factory,
                    Set superClasses,
                    Set restrictions)
Method Detail

getSuperclasses

public Set getSuperclasses()
Returns a collection of OWLDescriptions.

Specified by:
getSuperclasses in interface OWLFrame

getRestrictions

public Set getRestrictions()
Returns a collection of OWLRestrictions.

Specified by:
getRestrictions in interface OWLFrame

accept

public void accept(OWLObjectVisitor visitor)
            throws OWLException
Description copied from interface: OWLObject
Accept a visit from a visitor

Specified by:
accept in interface OWLObject
Specified by:
accept in class OWLObjectImpl
OWLException

accept

public void accept(OWLDescriptionVisitor visitor)
            throws OWLException
Description copied from interface: OWLDescription
Accept a visit from a visitor

Specified by:
accept in interface OWLDescription
OWLException


WonderWeb