Ejemplo n.º 1
0
 private bool TestAssociation(GoatAssociationModel Association,
                              string LeftMultiplicity, string RightMultiplicity,
                              AggregationType LeftAggregationType, AggregationType RightAggregationType,
                              bool LeftIsOwned, bool RightIsOwned,
                              NavigabilityType LeftNavigability, NavigabilityType RightNavigability,
                              bool LeftDerived, bool RightDerived,
                              bool LeftUnion, bool RightUnion)
 {
     return(Association.Left.Multiplicity == LeftMultiplicity &&
            Association.Right.Multiplicity == RightMultiplicity &&
            Association.Left.Aggregation == LeftAggregationType &&
            Association.Right.Aggregation == RightAggregationType &&
            Association.Left.IsOwnedByClassifier == LeftIsOwned &&
            Association.Right.IsOwnedByClassifier == RightIsOwned &&
            Association.Left.Navigability == LeftNavigability &&
            Association.Right.Navigability == RightNavigability &&
            Association.Left.Derived == LeftDerived &&
            Association.Right.Derived == RightDerived &&
            Association.Left.Union == LeftUnion &&
            Association.Right.Union == RightUnion);
 }
Ejemplo n.º 2
0
 private void SetAssociation(GoatAssociationModel Association,
                             string LeftMultiplicity, string RightMultiplicity,
                             AggregationType LeftAggregationType, AggregationType RightAggregationType,
                             bool LeftIsOwned, bool RightIsOwned,
                             NavigabilityType LeftNavigability, NavigabilityType RightNavigability,
                             bool LeftDerived, bool RightDerived,
                             bool LeftUnion, bool RightUnion)
 {
     Association.Left.Multiplicity         = LeftMultiplicity;
     Association.Right.Multiplicity        = RightMultiplicity;
     Association.Left.Aggregation          = LeftAggregationType;
     Association.Right.Aggregation         = RightAggregationType;
     Association.Left.IsOwnedByClassifier  = LeftIsOwned;
     Association.Right.IsOwnedByClassifier = RightIsOwned;
     Association.Left.Navigability         = LeftNavigability;
     Association.Right.Navigability        = RightNavigability;
     Association.Left.Derived  = LeftDerived;
     Association.Right.Derived = RightDerived;
     Association.Left.Union    = LeftUnion;
     Association.Right.Union   = RightUnion;
 }