Skip to content

Instantly share code, notes, and snippets.

@autoletics
Last active January 24, 2017 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save autoletics/6fdd7b3a0fd8ad70f8fc02473ae4c650 to your computer and use it in GitHub Desktop.
Save autoletics/6fdd7b3a0fd8ad70f8fc02473ae4c650 to your computer and use it in GitHub Desktop.
import org.jinspired.probes.strategy.*;
import org.jinspired.probes.*;
public final class StrategyFactory implements ProbesStrategyFactory {
public void init(Probes.Environment env) {/*..*/}
public ProbesStrategy create(Probes.Context ctx) {/*..*/}
private static final class Strategy implements ProbesStrategy {
// NO < 0, YES > 0, ABSTAIN = 0
public int vote(Probes.Probe p) {/*..*/}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment