blob: 8b0ee3288d2d686d610a36e76f64b1b7d1e9ed96 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009, 2018 SAP AG and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* SAP AG - initial API and implementation
******************************************************************************
*/
package company;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Company</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link company.Company#getDivision <em>Division</em>}</li>
* <li>{@link company.Company#getEotmDelta <em>Eotm Delta</em>}</li>
* <li>{@link company.Company#getDivisionDirector <em>Division Director</em>}</li>
* <li>{@link company.Company#getName <em>Name</em>}</li>
* </ul>
* </p>
*
* @see company.CompanyPackage#getCompany()
* @model annotation="http://www.eclipse.org/emf/2002/Ecore/OCL eotmDeltaMax='self.eotmDelta <= 5'"
* annotation="http://www.eclipse.org/emf/2002/Ecore constraints='eotmDeltaMax'"
* @generated
*/
public interface Company extends EObject {
/**
* Returns the value of the '<em><b>Division</b></em>' reference.
* It is bidirectional and its opposite is '{@link company.Division#getCompany <em>Company</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Division</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Division</em>' reference.
* @see #setDivision(Division)
* @see company.CompanyPackage#getCompany_Division()
* @see company.Division#getCompany
* @model opposite="company"
* @generated
*/
Division getDivision();
/**
* Sets the value of the '{@link company.Company#getDivision <em>Division</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Division</em>' reference.
* @see #getDivision()
* @generated
*/
void setDivision(Division value);
/**
* Returns the value of the '<em><b>Eotm Delta</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Eotm Delta</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Eotm Delta</em>' attribute.
* @see company.CompanyPackage#getCompany_EotmDelta()
* @model dataType="primitivetypes.Integer" transient="true" changeable="false" volatile="true" derived="true"
* annotation="http://www.eclipse.org/emf/2002/Ecore/OCL derivation='let maxEOTMDivision:Division=self.division->sortedBy(i | i.numberEmployeesOfTheMonth)->last() in let minEOTMDivision:Division=self.division->sortedBy(i | i.numberEmployeesOfTheMonth)->first() in maxEOTMDivision.numberEmployeesOfTheMonth - minEOTMDivision.numberEmployeesOfTheMonth'"
* @generated
*/
int getEotmDelta();
/**
* Returns the value of the '<em><b>Division Director</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Division Director</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Division Director</em>' reference.
* @see #isSetDivisionDirector()
* @see company.CompanyPackage#getCompany_DivisionDirector()
* @model unsettable="true" transient="true" changeable="false" volatile="true" derived="true"
* annotation="http://www.eclipse.org/emf/2002/Ecore/OCL derivation='self.division.director'"
* @generated
*/
Employee getDivisionDirector();
/**
* Returns whether the value of the '{@link company.Company#getDivisionDirector <em>Division Director</em>}' reference is set.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return whether the value of the '<em>Division Director</em>' reference is set.
* @see #getDivisionDirector()
* @generated
*/
boolean isSetDivisionDirector();
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Name</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see company.CompanyPackage#getCompany_Name()
* @model dataType="primitivetypes.String" changeable="false" volatile="true" derived="true"
* annotation="http://www.eclipse.org/emf/2002/Ecore/OCL derivation='if self.division->isEmpty() then\r\n \'Company with no division\'\r\nelse\r\n \'Company with division \'.concat(self.division.name)\r\nendif'"
* @generated
*/
String getName();
} // Company