blob: 6370d26b0e2d3c30c99bacc29b9c55bda2deed18 [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: DecisionNode.java,v 1.2 2006/05/12 20:38:09 khussey Exp $
*/
package org.eclipse.uml2.uml;
import java.util.Map;
import org.eclipse.emf.common.util.DiagnosticChain;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Decision Node</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* A decision node is a control node that chooses between outgoing flows.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.uml2.uml.DecisionNode#getDecisionInput <em>Decision Input</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.uml2.uml.UMLPackage#getDecisionNode()
* @model
* @generated
*/
public interface DecisionNode
extends ControlNode {
/**
* Returns the value of the '<em><b>Decision Input</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Provides input to guard specifications on edges outgoing from the decision node.
* <!-- end-model-doc -->
* @return the value of the '<em>Decision Input</em>' reference.
* @see #setDecisionInput(Behavior)
* @see org.eclipse.uml2.uml.UMLPackage#getDecisionNode_DecisionInput()
* @model ordered="false"
* @generated
*/
Behavior getDecisionInput();
/**
* Sets the value of the '{@link org.eclipse.uml2.uml.DecisionNode#getDecisionInput <em>Decision Input</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Decision Input</em>' reference.
* @see #getDecisionInput()
* @generated
*/
void setDecisionInput(Behavior value);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* A decision node has one incoming edge.
* true
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean validateOneIncomingEdge(DiagnosticChain diagnostics, Map context);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* A decision input behavior has zero or one input parameter and one output parameter. Any input parameter must be the same as or a supertype of the type of object tokens coming along the incoming edge. The behavior cannot have side effects.
* true
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean validateInputParameter(DiagnosticChain diagnostics, Map context);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The edges coming into and out of a decision node must be either all object flows or all control flows.
* true
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean validateEdges(DiagnosticChain diagnostics, Map context);
} // DecisionNode