All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.uml2.uml.InteractionConstraint Maven / Gradle / Ivy

There is a newer version: 5.0.0-v20140602-0749
Show newest version
/*
 * Copyright (c) 2005, 2011 IBM Corporation, CEA, and others.
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   IBM - initial API and implementation
 *   Kenn Hussey (CEA) - 327039
 *
 * $Id: InteractionConstraint.java,v 1.9 2007/10/23 15:54:22 jbruck Exp $
 */
package org.eclipse.uml2.uml;

import java.util.Map;

import org.eclipse.emf.common.util.DiagnosticChain;

import org.eclipse.emf.ecore.EClass;

/**
 * 
 * A representation of the model object 'Interaction Constraint'.
 * 
 *
 * 
 * An interaction constraint is a Boolean expression that guards an operand in a combined fragment.
 * 
 *
 * 

* The following features are supported: *

    *
  • {@link org.eclipse.uml2.uml.InteractionConstraint#getMaxint Maxint}
  • *
  • {@link org.eclipse.uml2.uml.InteractionConstraint#getMinint Minint}
  • *
*

* * @see org.eclipse.uml2.uml.UMLPackage#getInteractionConstraint() * @model * @generated */ public interface InteractionConstraint extends Constraint { /** * Returns the value of the 'Minint' containment reference. *

* This feature subsets the following features: *

    *
  • '{@link org.eclipse.uml2.uml.Element#getOwnedElements() Owned Element}'
  • *
*

* * * * The minimum number of iterations of a loop * * @return the value of the 'Minint' containment reference. * @see #setMinint(ValueSpecification) * @see org.eclipse.uml2.uml.UMLPackage#getInteractionConstraint_Minint() * @model containment="true" resolveProxies="true" ordered="false" * @generated */ ValueSpecification getMinint(); /** * Sets the value of the '{@link org.eclipse.uml2.uml.InteractionConstraint#getMinint Minint}' containment reference. * * * @param value the new value of the 'Minint' containment reference. * @see #getMinint() * @generated */ void setMinint(ValueSpecification value); /** * Creates a new {@link org.eclipse.uml2.uml.ValueSpecification}, with the specified 'Name', and 'Type', and sets the 'Minint' containment reference. * * * @param name The 'Name' for the new {@link org.eclipse.uml2.uml.ValueSpecification}, or null. * @param type The 'Type' for the new {@link org.eclipse.uml2.uml.ValueSpecification}, or null. * @param eClass The Ecore class of the {@link org.eclipse.uml2.uml.ValueSpecification} to create. * @return The new {@link org.eclipse.uml2.uml.ValueSpecification}. * @see #getMinint() * @generated */ ValueSpecification createMinint(String name, Type type, EClass eClass); /** * Returns the value of the 'Maxint' containment reference. *

* This feature subsets the following features: *

    *
  • '{@link org.eclipse.uml2.uml.Element#getOwnedElements() Owned Element}'
  • *
*

* * * * The maximum number of iterations of a loop * * @return the value of the 'Maxint' containment reference. * @see #setMaxint(ValueSpecification) * @see org.eclipse.uml2.uml.UMLPackage#getInteractionConstraint_Maxint() * @model containment="true" resolveProxies="true" ordered="false" * @generated */ ValueSpecification getMaxint(); /** * Sets the value of the '{@link org.eclipse.uml2.uml.InteractionConstraint#getMaxint Maxint}' containment reference. * * * @param value the new value of the 'Maxint' containment reference. * @see #getMaxint() * @generated */ void setMaxint(ValueSpecification value); /** * Creates a new {@link org.eclipse.uml2.uml.ValueSpecification}, with the specified 'Name', and 'Type', and sets the 'Maxint' containment reference. * * * @param name The 'Name' for the new {@link org.eclipse.uml2.uml.ValueSpecification}, or null. * @param type The 'Type' for the new {@link org.eclipse.uml2.uml.ValueSpecification}, or null. * @param eClass The Ecore class of the {@link org.eclipse.uml2.uml.ValueSpecification} to create. * @return The new {@link org.eclipse.uml2.uml.ValueSpecification}. * @see #getMaxint() * @generated */ ValueSpecification createMaxint(String name, Type type, EClass eClass); /** * * * * The dynamic variables that take part in the constraint must be owned by the ConnectableElement corresponding to the covered Lifeline. * true * @param diagnostics The chain of diagnostics to which problems are to be appended. * @param context The cache of context-specific information. * * @model * @generated */ boolean validateDynamicVariables(DiagnosticChain diagnostics, Map context); /** * * * * The constraint may contain references to global data or write-once data. * true * @param diagnostics The chain of diagnostics to which problems are to be appended. * @param context The cache of context-specific information. * * @model * @generated */ boolean validateGlobalData(DiagnosticChain diagnostics, Map context); /** * * * * Minint/maxint can only be present if the InteractionConstraint is associated with the operand of a loop CombinedFragment. * true * @param diagnostics The chain of diagnostics to which problems are to be appended. * @param context The cache of context-specific information. * * @model * @generated */ boolean validateMinintMaxint(DiagnosticChain diagnostics, Map context); /** * * * * If minint is specified, then the expression must evaluate to a non-negative integer. * true * @param diagnostics The chain of diagnostics to which problems are to be appended. * @param context The cache of context-specific information. * * @model * @generated */ boolean validateMinintNonNegative(DiagnosticChain diagnostics, Map context); /** * * * * If maxint is specified, then the expression must evaluate to a positive integer. * true * @param diagnostics The chain of diagnostics to which problems are to be appended. * @param context The cache of context-specific information. * * @model * @generated */ boolean validateMaxintPositive(DiagnosticChain diagnostics, Map context); /** * * * * If maxint is specified, then minint must be specified and the evaluation of maxint must be >= the evaluation of minint * true * @param diagnostics The chain of diagnostics to which problems are to be appended. * @param context The cache of context-specific information. * * @model * @generated */ boolean validateMaxintGreaterEqualMinint(DiagnosticChain diagnostics, Map context); } // InteractionConstraint




© 2015 - 2024 Weber Informatics LLC | Privacy Policy