001package systems.dmx.core.impl;
002
003import systems.dmx.core.Association;
004import systems.dmx.core.RelatedAssociation;
005
006
007
008/**
009 * An Association-Association pair that is attached to the {@link PersistenceLayer}.
010 */
011class RelatedAssociationImpl extends AssociationImpl implements RelatedAssociation {
012
013    // ---------------------------------------------------------------------------------------------------- Constructors
014
015    RelatedAssociationImpl(RelatedAssociationModelImpl model, PersistenceLayer pl) {
016        super(model, pl);
017    }
018
019    // -------------------------------------------------------------------------------------------------- Public Methods
020
021    @Override
022    public Association getRelatingAssociation() {
023        return getModel().getRelatingAssociation().instantiate();
024    }
025
026    @Override
027    public RelatedAssociationModelImpl getModel() {
028        return (RelatedAssociationModelImpl) model;
029    }
030}