be.ac.vub.cocompose.lang.core
Interface Relationship

All Superinterfaces:
Cloneable, Element, ModelElement, VisitedElement
All Known Implementing Classes:
DefaultRelationship

public interface Relationship
extends ModelElement

Interface for relationships between CoCompose language elements.

Since:
0.2.0
Version:
0.2.7, 16/04/2004
Author:
Dennis Wagelaar

Method Summary
 RelationElement getSourceParticipant()
          Gets the first participant in this relationship.
 RelationElement getTargetParticipant()
          Gets the second participant in this relationship.
 void setSourceParticipant(RelationElement sourceParticipant)
          Sets the first participant in this relationship.
 void setTargetParticipant(RelationElement targetParticipant)
          Sets the second participant in this relationship.
 
Methods inherited from interface be.ac.vub.cocompose.lang.core.ModelElement
getId, getModel, getName, getNamespace, setId, setName, setNamespace
 
Methods inherited from interface be.ac.vub.cocompose.lang.Element
addPropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface be.ac.vub.cocompose.lang.VisitedElement
accept
 

Method Detail

getSourceParticipant

public RelationElement getSourceParticipant()
Gets the first participant in this relationship.

Returns:
the source participant.

setSourceParticipant

public void setSourceParticipant(RelationElement sourceParticipant)
Sets the first participant in this relationship.

Parameters:
sourceParticipant - the source participant.

getTargetParticipant

public RelationElement getTargetParticipant()
Gets the second participant in this relationship.

Returns:
the target participant.

setTargetParticipant

public void setTargetParticipant(RelationElement targetParticipant)
Sets the second participant in this relationship.

Parameters:
targetParticipant - the target participant.