blob: 6b35244b8df2bfe601fe79d29d083376ef5de725 [file] [log] [blame]
package org.eclipse.stem.core.solver;
/*******************************************************************************
* Copyright (c) 2009 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 Corporation - initial API and implementation
*******************************************************************************/
import org.eclipse.emf.common.util.EList;
import org.eclipse.stem.core.common.Identifiable;
import org.eclipse.stem.core.graph.GraphPartitioner;
import org.eclipse.stem.core.model.Decorator;
import org.eclipse.stem.core.model.STEMTime;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Solver</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.stem.core.solver.Solver#getDecorators <em>Decorators</em>}</li>
* <li>{@link org.eclipse.stem.core.solver.Solver#isInitialized <em>Initialized</em>}</li>
* <li>{@link org.eclipse.stem.core.solver.Solver#getPartitioner <em>Partitioner</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.stem.core.solver.SolverPackage#getSolver()
* @model
* @generated
*/
public interface Solver extends Identifiable {
public final static String URI_TYPE = "Solver";
/**
* Returns the value of the '<em><b>Decorators</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Decorators</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Decorators</em>' attribute.
* @see #setDecorators(EList)
* @see org.eclipse.stem.core.solver.SolverPackage#getSolver_Decorators()
* @model many="false" transient="true"
* @generated
*/
EList<Decorator> getDecorators();
/**
* Sets the value of the '{@link org.eclipse.stem.core.solver.Solver#getDecorators <em>Decorators</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Decorators</em>' attribute.
* @see #getDecorators()
* @generated
*/
void setDecorators(EList<Decorator> value);
/**
* Returns the value of the '<em><b>Initialized</b></em>' attribute.
* The default value is <code>"false"</code>.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Initialized</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Initialized</em>' attribute.
* @see #setInitialized(boolean)
* @see org.eclipse.stem.core.solver.SolverPackage#getSolver_Initialized()
* @model default="false" transient="true" volatile="true"
* @generated
*/
boolean isInitialized();
/**
* Sets the value of the '{@link org.eclipse.stem.core.solver.Solver#isInitialized <em>Initialized</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Initialized</em>' attribute.
* @see #isInitialized()
* @generated
*/
void setInitialized(boolean value);
/**
* Returns the value of the '<em><b>Partitioner</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Partitioner</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Partitioner</em>' reference.
* @see #setPartitioner(GraphPartitioner)
* @see org.eclipse.stem.core.solver.SolverPackage#getSolver_Partitioner()
* @model transient="true"
* @generated
*/
GraphPartitioner getPartitioner();
/**
* Sets the value of the '{@link org.eclipse.stem.core.solver.Solver#getPartitioner <em>Partitioner</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Partitioner</em>' reference.
* @see #getPartitioner()
* @generated
*/
void setPartitioner(GraphPartitioner value);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model
* @generated
*/
boolean step(STEMTime time, long timeDelta, int cycle);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model
* @generated
*/
void reset();
public void initialize(STEMTime t, GraphPartitioner p);
} // Solver