Skip to content

Instantly share code, notes, and snippets.

@farleylai
Last active August 29, 2015 14:06
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 farleylai/fcdcb663d2768bca6746 to your computer and use it in GitHub Desktop.
Save farleylai/fcdcb663d2768bca6746 to your computer and use it in GitHub Desktop.
@Test
public void testMovingAvg() throws IOException {
Log.i("========= %s ===========\n", INFO.getMethodName());
SFG sfg = new SFG();
Channel AB = sfg.link("A", "B", 1, 10, 1);
Channel BC = sfg.link("B", "C", 1, 1, 1);
sfg.save(INFO.getMethodName(), true);
sfg.annotate("A", AB, CREATE, 1);
sfg.annotate("B", BC, CREATE, 1);
Simulator simulator = new Simulator();
Simulation simulation = simulator.simulate(sfg, false);
simulation.save(INFO.getMethodName(), true);
Log.i(sfg);
Log.i(simulation.info());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment