TogetherSoft
6.0
Event used, when the particle is being attached to or detached from the ontology.
"dvid" David Zejda mailto: dvid@sourceforge.net or dvid@atlas.cz
Holds value of property attachedParticle.
Creates a new instance
Getter for property attachedParticle.
Value of property attachedParticle.
Listener, that would like to be notified, as the particle is being attached to or detached from the ontology.
"dvid" David Zejda mailto: dvid@sourceforge.net or dvid@atlas.cz
Particle has been attached to the ontology.
Particle has been detached from the ontology.
Object able to inform about attaching and detaching.
"dvid" David Zejda mailto: dvid@sourceforge.net or dvid@atlas.cz
The listener will be informed every time the attaching or detaching occured.
The listener will be informed no more.
Class, that gathers the whole functionality of AttachEvent source.
"dvid" David Zejda mailto: dvid@sourceforge.net or dvid@atlas.cz
The real object, that should be written info new event as its source.
Creates a new instance
true
true
May be called (usually from the source) to generate and send event.
May be called (usually from the source) to generate and send event.
May be called (usually from the source) to generate and send event.
May be called (usually from the source) to generate and send event.
Event used, when the attribute of particle is being created or changed.
"dvid" David Zejda mailto: dvid@sourceforge.net or dvid@atlas.cz
Support inheritance of particles
Creates a new instance
Getter for property entity.
Value of property entity.
Holds value of property attribute.
Getter for property attribute.
Value of property attribute.
Listener, that would like to be notified, as the particle is being enriched by attribute or its attribute is being changed.
"dvid" David Zejda mailto: dvid@sourceforge.net or dvid@atlas.cz
Attribute has been changed.
Object able to inform about changes in attributes.
"dvid" David Zejda mailto: dvid@sourceforge.net or dvid@atlas.cz
The listener will be informed every time the change occured.
The listener will be informed no more.
Class, that gathers the whole functionality of AttributeChangeEvent source.
"dvid" David Zejda mailto: dvid@sourceforge.net or dvid@atlas.cz
The real object, that should be written info new event as its source.
Creates a new instance
true
true
May be called (usually from the source) to generate and send event.
May be called (usually from the source) to generate and send event.
Event used, when the particle is being attached to or detached from the ontology.
"dvid" David Zejda mailto: dvid@sourceforge.net or dvid@atlas.cz
Support inheritance of particles
Creates a new instance
Holds value of property relation.
Getter for property relation.
Value of property relation.
Listener, that would like to be notified, as the particle is entering the new relation or leaving the old one.
"dvid" David Zejda mailto: dvid@sourceforge.net or dvid@atlas.cz
Relation has been changed.
Object able to inform about changes in relations.
"dvid" David Zejda mailto: dvid@sourceforge.net or dvid@atlas.cz
The listener will be informed every time the change occured.
The listener will be informed no more.
Class, that gathers the whole functionality of RelationChangeEvent source.
"dvid" David Zejda mailto: dvid@sourceforge.net or dvid@atlas.cz
The real object, that should be written info new event as its source.
Creates a new instance
true
true
Fired every time ...
e event
Singleton instance holder.
Default implementation of InferenceEngine.
"dvid" David Zejda mailto: dvid@sourceforge.net or dvid@atlas.cz
Creates a new instance - only for internal usage.
Singleton instance holder.
Factory method for BasicInferenceEngine.
Should be used instead of direct constructor calling.
Ensures, that there is only one instance at once (~Singleton)
The engine responsible for inferences in the ontology.
Currently supports only the inheritance inferences.
There is strong intent to leave the kernel as simple, as possible.
So, most of functionality should be delegated to decorators, factories,
helpers etc. This interface is one of them.
"dvid" David Zejda mailto: dvid@sourceforge.net or dvid@atlas.cz
Add more types of inferences
Model for JTable, able to show attributes of entity.
"dvid" David Zejda mailto: dvid@sourceforge.net or dvid@atlas.cz
Creates a new instance of AttributeTableModel
Creates a new instance of AttributeTableModel with initial entity
Setter for property entity.
Property entity says, the attributes of which entity to show. If set, the table backed by this model is repainted.
e New value of property entity.
Holds value of property showInferred.
Setter for property showInferred.
showInferred New value of property showInferred.
Graphical applet, demonstrates the functionality of key parts of elont library.
Allows
- creating inheritance hierarchy of entities
- appending attributes to created entities
- connecting the entities with relations
- browsing the created ontology
It's only demo application, so it lacks of
- persistence
- inheritance of relations and attributes
- more complicated inferences etc.
David
This method is called from within the init() method to
initialize the form.
WARNING: Do NOT modify this code. The content of this method is
always regenerated by the Form Editor.
Model for JTree, able to show entity hierarchy. Decorator for the DefaultTreeModel.
"dvid" David Zejda mailto: dvid@sourceforge.net or dvid@atlas.cz
Ontology to be shown
Root node of the tree
Decorated model
Creates a new instance of OntologyTreeModel
Finds the node of the tree, that envelopes the entity ent.
If there is a new entity attached to ontology, the model must be refreshed..
Not implemented yet..
Model for JTable, able to show relations of entity.
"dvid" David Zejda mailto: dvid@sourceforge.net or dvid@atlas.cz
Index of column for "role"
Index of column for "relation"
Index of column for "counterpart role"
Index of column for "counterpart"
Relations of this entity should be shown
Creates a new instance
Creates a new instance with initial entity
Setter for property entity.
Property entity says, relations of which entity to show. If set, the table backed by this model is repainted.
e New value of property entity.
Holds value of property showInferred.
Setter for property showInferred.
Whether to show the relations inferred from the inheritance path.
showInferred New value of property showInferred.
Holds value of property withIsa.
Getter for property withIsa.
Value of property withIsa.
Setter for property withIsa.
Whether to show the isa relations (subconcept/superconcept).
withIsa New value of property withIsa.
Singleton instance holder.
Singleton instance holder.
Singleton instance holder.
Singleton instance holder.
Singleton factory class to help with entity instantiation.
There is strong intent to leave the kernel as simple, as possible.
So, most of functionality should be delegated to decorators, factories,
helpers etc. This class is one of them.
"dvid" David Zejda mailto: dvid@sourceforge.net or dvid@atlas.cz
Ontology to create entities for
Singleton instance holder.
Factory method for EntityFactory.
Should be used instead of direct constructor calling.
Ensures, that there is only one instance at once (~Singleton)
Creates a new instance of EntityFactory - only for internal usage
Creates the new entity and the isa relation to the parent entity.
Singleton helper class, that makes the inheritance inference and manipulation easier.
It has not its own state - everything is delegated to the backed Particle.
There is strong intent to leave the kernel as simple, as possible.
So, most of functionality should be delegated to decorators, factories,
helpers etc. This class is one of them.
"dvid" David Zejda mailto: dvid@sourceforge.net or dvid@atlas.cz
Particle type may be specified via generics
RelationFactory for isa relationships creation
Creates a new instance of InheritanceHelper - only for internal usage
Singleton instance holder.
Factory method for InheritanceHelper.
Should be used instead of direct constructor calling.
Ensures, that there is only one instance at once (~Singleton)
Finds the direct parent entity
If there is no parent, returns null
Upgrade the method to cast-safe version (probably will lead to a redesign of hierarchy definition)
Finds the root concept (least specific superconcept) of the p.
If there is no parent concept, returns p
Upgrade the method to cast-safe version (probably will lead to a redesign of hierarchy definition)
Singleton factory class to help with relation instantiation.
Currently simplifies only the inheritance relation creation.
There is strong intent to leave the kernel as simple, as possible.
So, most of functionality should be delegated to decorators, factories,
helpers etc. This class is one of them.
"dvid" David Zejda mailto: dvid@sourceforge.net or dvid@atlas.cz
Creates a new instance of RelationFactory
Singleton instance holder.
Factory method for RelationFactory.
Should be used instead of direct constructor calling.
Ensures, that there is only one instance at once (~Singleton)
Name of the isa relation
Name of the isa superconcept role
Name of the isa subconcept role
Creates the isa relation between superconcept and subconcept.
At least the relation itself and the two roles are created.
Singleton helper class, that makes the manipulation with relations easier.
It has not its own state - everything is delegated to the backed Particle.
There is strong intent to leave the kernel as simple, as possible.
So, most of functionality should be delegated to decorators, factories,
helpers etc. This class is one of them.
"dvid" David Zejda mailto: dvid@sourceforge.net or dvid@atlas.cz
Singleton instance holder.
Factory method for RelationHelper.
Should be used instead of direct constructor calling.
Ensures, that there is only one instance at once (~Singleton)
Creates a new instance of RelationHelper - only for internal usage
Returns the other role of the same relation
Works only for bilateral relations
Returns the role, in which the e is present in the r relation
If there is no such role in roles of relation, null is returned
Returns the role of e, named as specified in roleName
If there is no such role in roles of relation, null is returned
Holds value of property participant.
Holds value of property relation.
Holds value of property attachedTo.
Singleton instance holder.
Holds value of property belongsTo.
Allows to describe the entity with a set of traits.
Currently belongs to right one Entity, in the future releases there should be possible to attach it to other types of Particles (esp. Relations) and one attribute may be shared by more of them.
Separation of Attribute from AttributeInstance should be also considered.
Label should be literal instead of String.
The type and domain should be specific to ontology type system.
Holds value of property belongsTo.
Holds value of property domain.
Holds value of property type.
String
Holds value of property value.
For internal use - should be called ONLY from Entities!
Getter for property belongsTo.
Value of property belongsTo.
Setter for property belongsTo.
belongsTo New value of property belongsTo.
Getter for property domain.
Value of property domain.
Setter for property domain.
domain New value of property domain.
Getter for property type.
Value of property type.
Setter for property type.
type New value of property type.
Getter for property value.
Value of property value.
Setter for property value.
value New value of property value.
Support for event delagation model
The most important class of the model. Covers both the concepts and instances.
May be enriched by attributes and encompanied into relations with other particles.
Factory method for Entity.
Should be used instead of direct constructor calling.
Ensures, that there is only one instance for a key at once (~Singleton)
Factory method for Attribute.
Should be used instead of direct constructor calling.
Ensures, that there is only one instance for a key at once (~Singleton)
If attribute of name name exists, it is returned;
If not, the new one is created and then returned.
Support for event delagation model
Container for particles of all types.
The particle should be validated before attaching.
Currently there is only one ontology per a running application; this should be resolved.
Singleton instance holder.
Factory method for Ontology.
Should be used instead of direct constructor calling.
Ensures, that there is only one instance at once (~Singleton)
The method plugs the particle into ontology.
During attachement, the tests should be performed, if successful, listeners informed...
Currently no explicite attaching is needed, becouse particles are attached automatically immediately after instantiation.
In the future it will be sufficient to explicitely attach only one particle for a connected graph. Particles may be attached automatically, as appended to the tree and more, the pertinence of subentities may be inferred.
Removes the particle from the ontology.
Tests of validity should be performed, listeners informed...
In the prototype not avilable yet..
Holds value of property ignoreAttaches.
Getter for property ignoreAttaches.
Value of property ignoreAttaches.
Setter for property ignoreAttaches.
ignoreAttaches New value of property ignoreAttaches.
Root class of the objects attachable to the ontology.
Each particle is individual, full-fledged part of the tree.
All subclasses of this MUST call the method once, as fully instantiated
Currently, the particle will be attached to the relevant ontology, where the validity checks are performed and the listeners informed.
Allow to postinitialize more particles in a single, atomic transaction (e.g. entity with it's isa relation to a parent)
Holds value of property attachedTo.
Holds value of property label.
Holds value of property name.
Getter for property attachedTo.
Value of property attachedTo.
Setter for property attachedTo.
attachedTo New value of property attachedTo.
Should be used ONLY by internal call from Ontology.
Getter for property label.
Value of property label.
Setter for property label.
label New value of property label.
Getter for property name.
Value of property name.
Must be called, if the particle has entered a new relation or the participation have lost.
For internal use.
Support for event delagation model
Gathers the events from relations
The only way, how to represent the relations between particles.
Also the isa relation is implemented this way.
Publicly usable constructor.
Factory method for Role.
Should be used instead of direct constructor calling.
Ensures, that there is only one instance for a key at once (~Singleton)
Support for event delagation model
Gathers the events from roles
The integral part of every relation. The counterparts of relation performs the specific roles.
For internal use - may be called ONLY from Relation!
Relation can't be null
Holds value of property name.
It's the name from the point of view beginning on the role side.
(role "mother" => "mother of", role "daughter" => "child of" etc.)
Holds value of property participant.
Holds value of property relation.
Getter for property name.
Value of property name.
Getter for property participant.
Value of property participant.
Setter for property participant.
participant New value of property participant.
Getter for property relation.
Value of property relation.
Support for event delagation model