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 @@
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="fibonacciSeries.runners.Main" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="fibonacciSeries.runners.Main" />
<configuration name="fibonacci_series.runners.Main" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="fibonacci_series.runners.Main" />
<module name="Lab1" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="fibonacciSeries.runners.*" />
<option name="PATTERN" value="fibonacci_series.runners.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
......@@ -95,7 +95,7 @@
<recent_temporary>
<list>
<item itemvalue="JUnit.Tests.testPrimeFinder" />
<item itemvalue="Application.fibonacciSeries.runners.Main" />
<item itemvalue="Application.fibonacci_series.runners.Main" />
<item itemvalue="Application.Main" />
</list>
</recent_temporary>
......
package fibonacci_series.abstractions;
package fibonacciSeries.abstractions;
public interface IFibonacciCalculator {
long calculate(long number);
......
package fibonacci_series.abstractions;
package fibonacciSeries.abstractions;
import fibonacci_series.utilities.FibonacciStructure;
import fibonacciSeries.utilities.FibonacciStructure;
import java.util.List;
......
package fibonacci_series.abstractions;
package fibonacciSeries.abstractions;
import fibonacci_series.utilities.FibonacciStructureEvaluator;
import fibonacciSeries.utilities.FibonacciStructureEvaluator;
public interface IFibonacciRangeCalculatorMultiThreaded {
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 {
@Override
......
package fibonacci_series.implementation.item;
package fibonacciSeries.implementation.item;
import fibonacci_series.abstractions.IFibonacciCalculator;
import fibonacciSeries.abstractions.IFibonacciCalculator;
public class NormalFibonacciCalculator implements IFibonacciCalculator {
@Override
......
package fibonacci_series.implementation.item;
package fibonacciSeries.implementation.item;
import fibonacci_series.abstractions.IFibonacciCalculator;
import fibonacciSeries.abstractions.IFibonacciCalculator;
public class ParallelFibonacciCalculator implements IFibonacciCalculator {
@Override
......
package fibonacci_series.implementation.range;
package fibonacciSeries.implementation.range;
import fibonacci_series.abstractions.IFibonacciRangeCalculator;
import fibonacci_series.utilities.FibonacciStructure;
import fibonacci_series.utilities.FibonacciStructureService;
import fibonacci_series.utilities.IFibonacciStructureService;
import fibonacciSeries.abstractions.IFibonacciRangeCalculator;
import fibonacciSeries.utilities.FibonacciStructure;
import fibonacciSeries.utilities.FibonacciStructureService;
import fibonacciSeries.utilities.IFibonacciStructureService;
import java.util.ArrayList;
import java.util.List;
......
package fibonacci_series.runners;
package fibonacciSeries.runners;
import fibonacci_series.abstractions.IFibonacciRangeCalculator;
import fibonacci_series.implementation.range.FibonacciRangeCalculatorUsingStructure;
import fibonacci_series.utilities.FibonacciStructure;
import fibonacciSeries.abstractions.IFibonacciRangeCalculator;
import fibonacciSeries.implementation.range.FibonacciRangeCalculatorUsingStructure;
import fibonacciSeries.utilities.FibonacciStructure;
import java.util.List;
......
package fibonacci_series.utilities;
package fibonacciSeries.utilities;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
......
package fibonacci_series.utilities;
package fibonacciSeries.utilities;
public class FibonacciStructure {
private Long _xParameter;
......
package fibonacci_series.utilities;
package fibonacciSeries.utilities;
public class FibonacciStructureEvaluator {
}
package fibonacci_series.utilities;
package fibonacciSeries.utilities;
public class FibonacciStructureService implements IFibonacciStructureService {
......
package fibonacci_series.utilities;
package fibonacciSeries.utilities;
public interface IFibonacciStructureService {
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{
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