fr.ocelet.runtime
Class Model

Package class diagram package Model
java.lang.Object
  extended by fr.ocelet.runtime.AbstractEntity
      extended by fr.ocelet.runtime.Model
All Implemented Interfaces:
Entity, Role

public abstract class Model
extends AbstractEntity

Ocelet generic model class. The purpose of this abstract class is to provide methods useful for any kind of model. Every Ocelet model has to extend this class. And as it can be seen in the declaration every model is also an entity.


Field Summary
 
Fields inherited from class fr.ocelet.runtime.AbstractEntity
propmap, transaction
 
Constructor Summary
Model()
           
 
Method Summary
 void graphApplyBehavior(java.lang.String graphPropertyName, Interaction gi)
          Runs an interaction behavior on all the edges of the graph specified by the given property name.
 void graphConnect(java.lang.String graphPropertyName, java.util.Collection<Entity> vcol)
          Adds a new edge to the graph stored in the form of a property in this Model.
 long idnumber()
           
 
Methods inherited from class fr.ocelet.runtime.AbstractEntity
defProperty, getProperty, getProperty, setProperty, setProperty, tabort, tbegin, tcommit, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Model

public Model()
Method Detail

idnumber

public long idnumber()
Returns:
A long value that is unique for this model.

graphConnect

public void graphConnect(java.lang.String graphPropertyName,
                         java.util.Collection<Entity> vcol)
Adds a new edge to the graph stored in the form of a property in this Model.

Parameters:
graphPropertyName - Name of a graph Hproperty
vcol - Collection of entities to link together in the graph

graphApplyBehavior

public void graphApplyBehavior(java.lang.String graphPropertyName,
                               Interaction gi)
Runs an interaction behavior on all the edges of the graph specified by the given property name.

Parameters:
graphPropertyName - Name of a graph Hproperty
gi - Interaction to apply on the graph