From 1c5e38fe69ac8a6decbdd8abe93112f4e3369315 Mon Sep 17 00:00:00 2001 From: Joshua Rahm Date: Fri, 30 Jan 2015 17:11:48 -0700 Subject: added source --- src/PolarGraphIterator.java | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/PolarGraphIterator.java (limited to 'src/PolarGraphIterator.java') diff --git a/src/PolarGraphIterator.java b/src/PolarGraphIterator.java new file mode 100644 index 0000000..eaaf2cf --- /dev/null +++ b/src/PolarGraphIterator.java @@ -0,0 +1,26 @@ +/* */ public class PolarGraphIterator extends GraphIterator +/* */ { +/* */ private double tEnd; +/* */ private double tStep; +/* */ +/* */ private PolarGraphIterator(double tStart, double tEnd, double tStep) +/* */ { +/* 13 */ super(tStart); +/* 14 */ this.tEnd = tEnd; +/* 15 */ this.tStep = tStep; +/* */ } +/* */ public static PolarGraphIterator getInstance(Graph2D graph) { +/* 18 */ return new PolarGraphIterator(graph.getTStart(), graph.getTEnd(), graph.getTStep()); +/* */ } +/* */ public boolean hasMoreTokens() { +/* 21 */ return getIndex() <= this.tEnd; +/* */ } +/* */ public void onTurn() { +/* 24 */ this.index += this.tStep; +/* */ } +/* */ } + +/* Location: Modulus.jar + * Qualified Name: PolarGraphIterator + * JD-Core Version: 0.6.2 + */ \ No newline at end of file -- cgit