org.molwind.model
Interface RelationshipResolver


public interface RelationshipResolver

RelationshipResolver interface defines a strategy to resolve relationships among entities.

Version:
1.0
Author:
Oliver Karch

Method Summary
 java.lang.String getParentName()
          Get the ParentName value.
 boolean related(WorldEntity entity1, WorldEntity entity2)
          Augments the relationship between two entities.
 EntityGraph resolve()
          Resolves the relationships by creating a graph of entity vertices and relationship edges.
 

Method Detail

related

boolean related(WorldEntity entity1,
                WorldEntity entity2)
Augments the relationship between two entities.

Parameters:
entity1 - a world entity
entity2 - another world entity
Returns:
true if any relationship could be established, false otherwise

resolve

EntityGraph resolve()
Resolves the relationships by creating a graph of entity vertices and relationship edges.

Returns:
the resulting entity graph

getParentName

java.lang.String getParentName()
Get the ParentName value.

Returns:
the ParentName value.


Copyright © 2008-2010. All Rights Reserved.