Class Cyclic<V extends Variable>

  • All Implemented Interfaces:
    VariableSelector<V>

    public class Cyclic<V extends Variable>
    extends Object
    implements VariableSelector<V>
    A cyclic variable selector : Iterates over variables according to lexicographic ordering in a cyclic manner (loop back to the first variable)
    Since:
    18/07/12
    Author:
    Charles Prud'homme
    • Field Detail

      • current

        protected int current
    • Constructor Detail

      • Cyclic

        public Cyclic()
    • Method Detail

      • getVariable

        public V getVariable​(V[] vars)
        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.