model.MARK_II.Pooler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of WalnutiQ Show documentation
Show all versions of WalnutiQ Show documentation
A Java based Neuron Modeling framework
package model.MARK_II;
/**
* Abstract class extended by SpatialPooler.java and TemporalPooler.java classes.
*
* @author Quinn Liu ([email protected])
* @version June 26, 2013
*/
public abstract class Pooler {
protected Region region;
private boolean learningState;
public void changeRegion(Region newRegion) {
if (newRegion == null) {
throw new IllegalArgumentException(
"newRegion in Pooler class changeRegion method cannot be null");
}
this.learningState = false;
this.region = newRegion;
}
public boolean getLearningState() {
return this.learningState;
}
public void setLearningState(boolean learningState) {
this.learningState = learningState;
}
public Region getRegion() {
return this.region;
}
}