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

## modelling
Class Selector

    java.lang.Object
      modelling.Selector

Direct Known Subclasses:
  Nature.CanSee, Nature.GoodKind

public abstract class Selector
extends java.lang.Object

Selects elements. It is a simple encapsulation of a boolean method taking an Element in argument. A selector is useful to give methods in argument.

Constructor Summary
`Selector()`

Method Summary
`Selector` | `and(Selector sel)` Executes the logical fonction and between the current selector and the given one.
`abstract boolean` | `isFiting(Element el)` Computes whether the given element is fiting the requirement of the selector.
`Selector` | `not()` Executes the logical fonction not on that selector.
`Selector` | `or(Selector sel)` Executes the logical fonction or between the current selector and the given one.

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

Constructor Detail

### Selector

    public Selector()

Method Detail

### isFiting

    public abstract boolean isFiting(Element el)

  Computes whether the given element is fiting the requirement of the selector.

### or

    public Selector or(Selector sel)

  Executes the logical fonction or between the current selector and the given one.

### and

    public Selector and(Selector sel)

  Executes the logical fonction and between the current selector and the given one.

### not

    public Selector not()

  Executes the logical fonction not on that selector.

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