Commit 5efb5f5d authored by mohamad's avatar mohamad

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

parent 68af91d5
package fibonacciSeries.abstractions; package fibonacci_series.abstractions;
public interface IFibonacciCalculator { public interface IFibonacciCalculator {
long calculate(long number); long calculate(long number);
......
package fibonacciSeries.abstractions; package fibonacci_series.abstractions;
import fibonacciSeries.utilities.FibonacciStructure; import fibonacci_series.utilities.FibonacciStructure;
import java.util.List; import java.util.List;
......
package fibonacciSeries.abstractions; package fibonacci_series.abstractions;
import fibonacciSeries.utilities.FibonacciStructureEvaluator; import fibonacci_series.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 fibonacciSeries.implementation.item; package fibonacci_series.implementation.item;
import fibonacciSeries.abstractions.IFibonacciCalculator; import fibonacci_series.abstractions.IFibonacciCalculator;
public class MathFibonacciCalculator implements IFibonacciCalculator { public class MathFibonacciCalculator implements IFibonacciCalculator {
@Override @Override
......
package fibonacciSeries.implementation.item; package fibonacci_series.implementation.item;
import fibonacciSeries.abstractions.IFibonacciCalculator; import fibonacci_series.abstractions.IFibonacciCalculator;
public class NormalFibonacciCalculator implements IFibonacciCalculator { public class NormalFibonacciCalculator implements IFibonacciCalculator {
@Override @Override
......
package fibonacciSeries.implementation.item; package fibonacci_series.implementation.item;
import fibonacciSeries.abstractions.IFibonacciCalculator; import fibonacci_series.abstractions.IFibonacciCalculator;
public class ParallelFibonacciCalculator implements IFibonacciCalculator { public class ParallelFibonacciCalculator implements IFibonacciCalculator {
@Override @Override
......
package fibonacciSeries.implementation.range; package fibonacci_series.implementation.range;
import fibonacciSeries.abstractions.IFibonacciRangeCalculator; import fibonacci_series.abstractions.IFibonacciRangeCalculator;
import fibonacciSeries.utilities.FibonacciStructure; import fibonacci_series.utilities.FibonacciStructure;
import fibonacciSeries.utilities.FibonacciStructureService; import fibonacci_series.utilities.FibonacciStructureService;
import fibonacciSeries.utilities.IFibonacciStructureService; import fibonacci_series.utilities.IFibonacciStructureService;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
......
package fibonacciSeries.runners; package fibonacci_series.runners;
import fibonacciSeries.abstractions.IFibonacciCalculator; import fibonacci_series.abstractions.IFibonacciRangeCalculator;
import fibonacciSeries.abstractions.IFibonacciRangeCalculator; import fibonacci_series.implementation.range.FibonacciRangeCalculatorUsingStructure;
import fibonacciSeries.implementation.item.MathFibonacciCalculator; import fibonacci_series.utilities.FibonacciStructure;
import fibonacciSeries.implementation.range.FibonacciRangeCalculatorUsingStructure;
import fibonacciSeries.utilities.FibonacciStructure;
import java.util.List; import java.util.List;
......
package fibonacciSeries.utilities; package fibonacci_series.utilities;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
......
package fibonacciSeries.utilities; package fibonacci_series.utilities;
public class FibonacciStructure { public class FibonacciStructure {
private Long _xParameter; private Long _xParameter;
......
package fibonacciSeries.utilities; package fibonacci_series.utilities;
import java.util.List;
public class FibonacciStructureEvaluator { public class FibonacciStructureEvaluator {
} }
package fibonacciSeries.utilities; package fibonacci_series.utilities;
public class FibonacciStructureService implements IFibonacciStructureService { public class FibonacciStructureService implements IFibonacciStructureService {
......
package fibonacciSeries.utilities; package fibonacci_series.utilities;
public interface IFibonacciStructureService { public interface IFibonacciStructureService {
FibonacciStructure add(FibonacciStructure first,FibonacciStructure second); FibonacciStructure add(FibonacciStructure first,FibonacciStructure second);
......
package fibonacciSeries.utilities; package fibonacci_series.utilities;
import fibonacciSeries.abstractions.IFibonacciRangeCalculator; import fibonacci_series.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