예제 #1
0
 public static Repartiteur getEngine()
 {
     if (engine == null)
     {
         engine = new Repartiteur();
     }
     return(engine);
 }
예제 #2
0
 public void calculateAll()
 {
     Repartiteur.getEngine().equity(this.portfolio);
     Repartiteur.getEngine().change(this.portfolio);
     Repartiteur.getEngine().spread(this.portfolio);
     Repartiteur.getEngine().concentration(this.portfolio);
     this.notifyObservers();
 }
예제 #3
0
        public void notify()
        {
            if (portfolio.ItemsSource == null)
            {
                portfolio.Items.Clear();
            }
            if (equitymodule.ItemsSource == null)
            {
                equitymodule.Items.Clear();
            }

            if (!initialized)
            {
                portfolio.ItemsSource = Engine.getEngine().Portfolio;
            }
            else
            {
                equitymodule.ItemsSource = Repartiteur.getEngine().ModEqu.Results;
            }
            initialized = true;
        }
예제 #4
0
 public static Repartiteur getEngine()
 {
     if (engine == null)
         engine = new Repartiteur();
     return engine;
 }
예제 #5
0
 public void Reset()
 {
     engine = null;
 }
예제 #6
0
 public void calculateEquity()
 {
     Repartiteur.getEngine().equity(this.portfolio);
     this.notifyObservers();
 }