public interface ModelSetter
private final ModelReplacementManager replacementManager = new ModelReplacementManager( new ModelSetter() { public void setModel(MaxentModel m) { model = m; } } );
where "model" would be the actual variable name of the model used by your application which you wish to be able to swap (you might have other models which need their own ModelSetters).
Basically, this is just a clean way of giving a ModelReplacementManager access to a private variable holding the model. Nothing complex here.
Modifier and Type | Method and Description |
---|---|
void |
setModel(MaxentModel m)
Assign a new MaxentModel value to a MaxentModel variable.
|
void setModel(MaxentModel m)
m
- The new model.Copyright © 2015 The Apache Software Foundation. All rights reserved.