org.molwind.model
Interface Relationship

All Known Implementing Classes:
BaseRelationship, PartOf

public interface Relationship

Relationship interface defines bidirectional relationships between entities.

Version:
1.0
Author:
Oliver Karch

Method Summary
 WorldEntity getLeft()
          Gets the left entity.
 WorldEntity getRight()
          Gets the right entity.
 boolean isTransitive()
          Returns whether this relationship supports transitivity.
 

Method Detail

getLeft

WorldEntity getLeft()
Gets the left entity.

Returns:
the left entity

getRight

WorldEntity getRight()
Gets the right entity.

Returns:
the right entity

isTransitive

boolean isTransitive()
Returns whether this relationship supports transitivity.

Returns:
true if relationship type is transitive, otherwise false


Copyright © 2008-2010. All Rights Reserved.