blob: af74d96c4fc15ed1e687786934a918d4cc34befd [file] [log] [blame]
/*
* Copyright (c) 2005, 2006 IBM Corporation 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
*
* $Id: ActionInputPin.java,v 1.6 2006/12/14 15:49:27 khussey Exp $
*/
package org.eclipse.uml2.uml;
import java.util.Map;
import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.ecore.EClass;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Action Input Pin</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* An action input pin is a kind of pin that executes an action to determine the values to input to another.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.uml2.uml.ActionInputPin#getFromAction <em>From Action</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.uml2.uml.UMLPackage#getActionInputPin()
* @model
* @generated
*/
public interface ActionInputPin
extends InputPin {
/**
* Returns the value of the '<em><b>From Action</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The action used to provide values.
* <!-- end-model-doc -->
* @return the value of the '<em>From Action</em>' containment reference.
* @see #setFromAction(Action)
* @see org.eclipse.uml2.uml.UMLPackage#getActionInputPin_FromAction()
* @model containment="true" resolveProxies="true" required="true" ordered="false"
* @generated
*/
Action getFromAction();
/**
* Sets the value of the '{@link org.eclipse.uml2.uml.ActionInputPin#getFromAction <em>From Action</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>From Action</em>' containment reference.
* @see #getFromAction()
* @generated
*/
void setFromAction(Action value);
/**
* Creates a new {@link org.eclipse.uml2.uml.Action}, with the specified '<em><b>Name</b></em>', and sets the '<em><b>From Action</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name The '<em><b>Name</b></em>' for the new {@link org.eclipse.uml2.uml.Action}, or <code>null</code>.
* @param eClass The Ecore class of the {@link org.eclipse.uml2.uml.Action} to create.
* @return The new {@link org.eclipse.uml2.uml.Action}.
* @see #getFromAction()
* @generated
*/
Action createFromAction(String name, EClass eClass);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The fromAction of an action input pin must have exactly one output pin.
* true
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean validateOneOutputPin(DiagnosticChain diagnostics,
Map<Object, Object> context);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The fromAction of an action input pin must only have action input pins as input pins.
* true
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean validateInputPin(DiagnosticChain diagnostics,
Map<Object, Object> context);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The fromAction of an action input pin cannot have control or data flows coming into or out of it or its pins.
* true
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean validateNoControlOrDataFlow(DiagnosticChain diagnostics,
Map<Object, Object> context);
} // ActionInputPin