Este conteúdo não está disponível no idioma selecionado.
Chapter 20. Salience State Example
20.1. Salience State Example: State Class Example Copiar o linkLink copiado para a área de transferência!
Copiar o linkLink copiado para a área de transferência!
public class State {
public static final int NOTRUN = 0;
public static final int FINISHED = 1;
private final PropertyChangeSupport changes =
new PropertyChangeSupport( this );
private String name;
private int state;
... setters and getters go here...
}
- Each
Stateclass has fields for its name and its current state (see the classorg.drools.examples.state.State). The two possible states for each objects areNOTRUNandFINISHED.