Commit 736a5f4e authored by mohamad's avatar mohamad

this Fibonacci package is not working until now, because of the deadline

parent 5efb5f5d
...@@ -63,12 +63,12 @@ ...@@ -63,12 +63,12 @@
<option name="Make" enabled="true" /> <option name="Make" enabled="true" />
</method> </method>
</configuration> </configuration>
<configuration name="fibonacciSeries.runners.Main" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true"> <configuration name="fibonacci_series.runners.Main" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="fibonacciSeries.runners.Main" /> <option name="MAIN_CLASS_NAME" value="fibonacci_series.runners.Main" />
<module name="Lab1" /> <module name="Lab1" />
<extension name="coverage"> <extension name="coverage">
<pattern> <pattern>
<option name="PATTERN" value="fibonacciSeries.runners.*" /> <option name="PATTERN" value="fibonacci_series.runners.*" />
<option name="ENABLED" value="true" /> <option name="ENABLED" value="true" />
</pattern> </pattern>
</extension> </extension>
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<recent_temporary> <recent_temporary>
<list> <list>
<item itemvalue="JUnit.Tests.testPrimeFinder" /> <item itemvalue="JUnit.Tests.testPrimeFinder" />
<item itemvalue="Application.fibonacciSeries.runners.Main" /> <item itemvalue="Application.fibonacci_series.runners.Main" />
<item itemvalue="Application.Main" /> <item itemvalue="Application.Main" />
</list> </list>
</recent_temporary> </recent_temporary>
......
package fibonacci_series.abstractions; package fibonacciSeries.abstractions;
public interface IFibonacciCalculator { public interface IFibonacciCalculator {
long calculate(long number); long calculate(long number);
......
package fibonacci_series.abstractions; package fibonacciSeries.abstractions;
import fibonacci_series.utilities.FibonacciStructure; import fibonacciSeries.utilities.FibonacciStructure;
import java.util.List; import java.util.List;
......
package fibonacci_series.abstractions; package fibonacciSeries.abstractions;
import fibonacci_series.utilities.FibonacciStructureEvaluator; import fibonacciSeries.utilities.FibonacciStructureEvaluator;
public interface IFibonacciRangeCalculatorMultiThreaded { public interface IFibonacciRangeCalculatorMultiThreaded {
FibonacciStructureEvaluator calculate(long start, long end,int numberOfThreads); FibonacciStructureEvaluator calculate(long start, long end,int numberOfThreads);
......
package fibonacci_series.implementation.item; package fibonacciSeries.implementation.item;
import fibonacci_series.abstractions.IFibonacciCalculator; import fibonacciSeries.abstractions.IFibonacciCalculator;
public class MathFibonacciCalculator implements IFibonacciCalculator { public class MathFibonacciCalculator implements IFibonacciCalculator {
@Override @Override
......
package fibonacci_series.implementation.item; package fibonacciSeries.implementation.item;
import fibonacci_series.abstractions.IFibonacciCalculator; import fibonacciSeries.abstractions.IFibonacciCalculator;
public class NormalFibonacciCalculator implements IFibonacciCalculator { public class NormalFibonacciCalculator implements IFibonacciCalculator {
@Override @Override
......
package fibonacci_series.implementation.item; package fibonacciSeries.implementation.item;
import fibonacci_series.abstractions.IFibonacciCalculator; import fibonacciSeries.abstractions.IFibonacciCalculator;
public class ParallelFibonacciCalculator implements IFibonacciCalculator { public class ParallelFibonacciCalculator implements IFibonacciCalculator {
@Override @Override
......
package fibonacci_series.implementation.range; package fibonacciSeries.implementation.range;
import fibonacci_series.abstractions.IFibonacciRangeCalculator; import fibonacciSeries.abstractions.IFibonacciRangeCalculator;
import fibonacci_series.utilities.FibonacciStructure; import fibonacciSeries.utilities.FibonacciStructure;
import fibonacci_series.utilities.FibonacciStructureService; import fibonacciSeries.utilities.FibonacciStructureService;
import fibonacci_series.utilities.IFibonacciStructureService; import fibonacciSeries.utilities.IFibonacciStructureService;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
......
package fibonacci_series.runners; package fibonacciSeries.runners;
import fibonacci_series.abstractions.IFibonacciRangeCalculator; import fibonacciSeries.abstractions.IFibonacciRangeCalculator;
import fibonacci_series.implementation.range.FibonacciRangeCalculatorUsingStructure; import fibonacciSeries.implementation.range.FibonacciRangeCalculatorUsingStructure;
import fibonacci_series.utilities.FibonacciStructure; import fibonacciSeries.utilities.FibonacciStructure;
import java.util.List; import java.util.List;
......
package fibonacci_series.utilities; package fibonacciSeries.utilities;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
......
package fibonacci_series.utilities; package fibonacciSeries.utilities;
public class FibonacciStructure { public class FibonacciStructure {
private Long _xParameter; private Long _xParameter;
......
package fibonacci_series.utilities; package fibonacciSeries.utilities;
public class FibonacciStructureEvaluator { public class FibonacciStructureEvaluator {
} }
package fibonacci_series.utilities; package fibonacciSeries.utilities;
public class FibonacciStructureService implements IFibonacciStructureService { public class FibonacciStructureService implements IFibonacciStructureService {
......
package fibonacci_series.utilities; package fibonacciSeries.utilities;
public interface IFibonacciStructureService { public interface IFibonacciStructureService {
FibonacciStructure add(FibonacciStructure first,FibonacciStructure second); FibonacciStructure add(FibonacciStructure first,FibonacciStructure second);
......
package fibonacci_series.utilities; package fibonacciSeries.utilities;
import fibonacci_series.abstractions.IFibonacciRangeCalculator; import fibonacciSeries.abstractions.IFibonacciRangeCalculator;
public class RunnableFibonacciRangeCalculator implements Runnable{ public class RunnableFibonacciRangeCalculator implements Runnable{
private IFibonacciRangeCalculator _rangeCalculator; private IFibonacciRangeCalculator _rangeCalculator;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment