protected MoveOperation counterToOperation ( int counter ) { int jobIndex = counter / ( this . problem . machines - 1 ) ; int machineIndex = counter % ( this . problem . machines - 1 ) ; if ( machineIndex >= this . configuration . valueAt ( jobIndex ) ) machineIndex ++ ; return this . problem . moveOperations . get ( jobIndex ) . get ( machineIndex ) ; }
Returns operation for given counter .