de.deepamehta.core
Interface Association

Show UML class diagram
All Superinterfaces:
DeepaMehtaObject, Identifiable, JSONEnabled
All Known Subinterfaces:
AssociationDefinition, RelatedAssociation
All Known Implementing Classes:
AttachedAssociation, AttachedAssociationDefinition, AttachedRelatedAssociation

public interface Association
extends DeepaMehtaObject

### FIXDOC: Specification of an association -- A n-ary connection between topics and other associations.

Author:
Jörg Richter

Method Summary
 AssociationModel getModel()
           
 RelatedAssociation getRelatedAssociation(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri)
           
 Role getRole(RoleModel roleModel)
          Returns this association's role which refers to the same object as the given role model.
 Role getRole1()
           
 Role getRole2()
           
 Topic getTopic(String roleTypeUri)
           
 List<Topic> getTopics(String roleTypeUri)
           
 boolean isPlayer(TopicRoleModel roleModel)
           
 void update(AssociationModel model, ClientState clientState, Directives directives)
           
 
Methods inherited from interface de.deepamehta.core.DeepaMehtaObject
delete, getAssociation, getAssociations, getCompositeValue, getId, getProperty, getRelatedTopic, getRelatedTopics, getRelatedTopics, getRelatedTopics, getSimpleValue, getTypeUri, getUri, hasProperty, loadChildTopics, removeProperty, setCompositeValue, setProperty, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, update, updateChildTopic, updateChildTopics
 
Methods inherited from interface de.deepamehta.core.JSONEnabled
toJSON
 

Method Detail

getRole1

Role getRole1()

getRole2

Role getRole2()

getTopic

Topic getTopic(String roleTypeUri)

getTopics

List<Topic> getTopics(String roleTypeUri)

getRole

Role getRole(RoleModel roleModel)
Returns this association's role which refers to the same object as the given role model. The role returned is found by comparing topic IDs, topic URIs, or association IDs. The role types are not compared.

If the object refered by the given role model is not a player in this association an exception is thrown.


isPlayer

boolean isPlayer(TopicRoleModel roleModel)

getModel

AssociationModel getModel()
Specified by:
getModel in interface DeepaMehtaObject

update

void update(AssociationModel model,
            ClientState clientState,
            Directives directives)

getRelatedAssociation

RelatedAssociation getRelatedAssociation(String assocTypeUri,
                                         String myRoleTypeUri,
                                         String othersRoleTypeUri)


Copyright © 2013. All Rights Reserved.