Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.drools.planner.core.heuristic.selector.common.iterator
Class AbstractOriginalSwapIterator<S,SubS>

    java.lang.Object
      org.drools.planner.core.heuristic.selector.common.iterator.UpcomingSelectionIterator<S>
          org.drools.planner.core.heuristic.selector.common.iterator.AbstractOriginalSwapIterator<S,SubS>

All Implemented Interfaces:
  Iterator<S>

    public abstract class AbstractOriginalSwapIterator<S,SubS>

extends UpcomingSelectionIterator<S>

Field Summary
`protected boolean` | `leftEqualsRight`
`protected ListIterable<SubS>` | `leftSubSelector`
`protected ListIterable<SubS>` | `rightSubSelector`

Fields inherited from class org.drools.planner.core.heuristic.selector.common.iterator.UpcomingSelectionIterator
`upcomingSelection`

Constructor Summary
`AbstractOriginalSwapIterator(ListIterable<SubS> leftSubSelector, ListIterable<SubS> rightSubSelector)`

Method Summary
`protected void` | `createUpcomingSelection()`
`static
`<SubS> long`
` | `getSize(Selector leftSubSelector, Selector rightSubSelector)`
`protected abstract S` | `newSwapSelection(SubS leftSubSelection, SubS rightSubSelection)`

Methods inherited from class org.drools.planner.core.heuristic.selector.common.iterator.UpcomingSelectionIterator
`hasNext, next, remove`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### leftSubSelector

    protected final ListIterable<SubS> leftSubSelector

### rightSubSelector

    protected final ListIterable<SubS> rightSubSelector

### leftEqualsRight

    protected final boolean leftEqualsRight

Constructor Detail

### AbstractOriginalSwapIterator

    public AbstractOriginalSwapIterator(ListIterable<SubS> leftSubSelector,
                                        ListIterable<SubS> rightSubSelector)

Method Detail

### getSize

    public static <SubS> long getSize(Selector leftSubSelector,
                                      Selector rightSubSelector)

### createUpcomingSelection

    protected void createUpcomingSelection()

  Specified by:
    `createUpcomingSelection` in class `UpcomingSelectionIterator<S>`

### newSwapSelection

    protected abstract S newSwapSelection(SubS leftSubSelection,
                                          SubS rightSubSelection)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.