public abstract class BaseUpdater extends Object implements LogicalModelUpdater
| Modifier and Type | Field and Description |
|---|---|
protected LogicalModel |
model |
protected int |
size |
| Constructor and Description |
|---|
BaseUpdater(LogicalModel model) |
| Modifier and Type | Method and Description |
|---|---|
LogicalModel |
getModel() |
protected int |
nodeChange(byte[] state,
int index)
Test if a component is ready to change its state.
|
protected byte[] |
update(byte[] state,
int idx,
int change,
byte[] next)
Create or update the next state.
|
protected final LogicalModel model
protected final int size
public BaseUpdater(LogicalModel model)
protected int nodeChange(byte[] state,
int index)
state - the base stateindex - the index of the componentpublic LogicalModel getModel()
getModel in interface LogicalModelUpdaterprotected byte[] update(byte[] state,
int idx,
int change,
byte[] next)
state - the base stateidx - index of the position to updatechange - change for this positionnext - a previously created next state (null if it is still unchanged)Copyright © 2012–2020. All rights reserved.