Last active
August 29, 2015 14:06
-
-
Save farleylai/fcdcb663d2768bca6746 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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