1 package cz.cuni.amis.pogamut.sposh.elements; 2 3 import cz.cuni.amis.pogamut.sposh.engine.VariableContext; 4 5 /** 6 * Interface for elements that have parameters. {@link FormalParameters parameters} 7 * are immutable. 8 * 9 * @author Honza 10 */ 11 public interface IParametrizedElement extends INamedElement { 12 13 public FormalParameters getParameters(); 14 15 /** 16 * Set new parameters. 17 * 18 * @param newParams new parameters 19 * @throws IllegalArgumentException Implementing methods fire changes and 20 * also to {@link LapChain}. If it propagates to some node that is showing 21 * the node, it can cause missing variable in {@link VariableContext}. 22 */ 23 public void setParameters(FormalParameters newParams); 24 }