/*
 *   Calccedo Library
 *   hint this code under Apache License
 */



package com.precious.calccedo.configuration;


import com.precious.calccedo.handlers.CustomOperandMap;
import com.precious.calccedo.handlers.Infinity;

/**
 *
 * @author Ibrahim Abdsaid Hanna
 *         ibrahim.seniore@gmail.com
 */
  public class Configuration {
    
      public static boolean deepTracing=false; 
      CustomOperandMap constantOperand=new CustomOperandMap();
    
      public Class getCustomeOperandMap(){
          return CustomOperandMap.class;
      }
    
      protected void init(){
       
       // Calccedo initlization 
        addCustomOperand("Sin",30, 0.5);
        addCustomOperand("Sin",30.0, 0.5);
        addCustomOperand("Cos",60, 0.5);
        addCustomOperand("Cos",60.0, 0.5);
        addCustomOperand("Cos",90, 0);
        addCustomOperand("Cos",90.0, 0);
        addCustomOperand("Tan",45,1);
        addCustomOperand("Tan",45.0,1);
        addCustomOperand("Tan",90,new Infinity());
        addCustomOperand("Tan",90.0,new Infinity());
       
        
      }
    
    public void enableDeepTrace(boolean enabled){
        deepTracing=enabled;
    }
      
    private void addCustomOperand(String customOperand, int quoteNumber,double value){
      constantOperand.add(customOperand, quoteNumber, value);
    }
    
    
    private void addCustomOperand(String customOperand, double quoteNumber,double value){
      constantOperand.add(customOperand, quoteNumber, value);
    }
      
    private void addCustomOperand(String customOperand, int quoteNumber, Object object){
      constantOperand.add(customOperand, quoteNumber, object);
    }
      
    
    private void addCustomOperand(String customOperand, double quoteNumber, Object object){
      constantOperand.add(customOperand, quoteNumber, object);
    }
      
}

@@ -50,17 +50,16 @@
 r Apache
- 
 License%0A
@@ -112,16 +112,17 @@
 tion;%0A%0A%0A
+%0A
 import c
@@ -308,16 +308,25 @@
  public 
+abstract 
 class Co
@@ -455,24 +455,25 @@
 dMap();%0A    
+ 
 %0A      publi
@@ -553,24 +553,91 @@
       %7D%0A    
+// rename list and list2 here to make calccedo handler clear design
 %0A      prote
@@ -1160,21 +1160,24 @@
   %0A    p
-ublic
+rotected
  void en
@@ -1248,37 +1248,39 @@
  %7D%0A      %0A    pr
-iva
+otec
 te
+d
  void addCustomO
@@ -1415,37 +1415,39 @@
     %0A    %0A    pr
-ivate
+otected
  void addCustomO
@@ -1582,37 +1582,39 @@
  %7D%0A      %0A    pr
-ivate
+otected
  void addCustomO
@@ -1766,13 +1766,15 @@
   pr
-ivate
+otected
  voi

Update Configuration.java