Class InputOrder<V extends Variable>

  • All Implemented Interfaces:
    VariableSelector<V>

    public class InputOrder<V extends Variable>
    extends Object
    implements VariableSelector<V>
    Input order variable selector. It chooses variables in order they appears (instantiated variables are ignored).
    Since:
    2 juil. 2010
    Author:
    Charles Prud'homme
    • Constructor Detail

      • InputOrder

        public InputOrder​(Model model)
        Input order variable selector. It chooses variables in order they appears (instantiated variables are ignored).
        Parameters:
        model - reference to the model (does not define the variable scope)
    • Method Detail

      • getVariable

        public V getVariable​(V[] variables)
        Description copied from interface: VariableSelector
        Provides access to the current selected variable among variables. If there is no variable left, return null.
        Specified by:
        getVariable in interface VariableSelector<V extends Variable>
        Returns:
        the current selected variable if any, null otherwise.