Ejemplo n.º 1
0
 public ParticleTransmissionCostCalculator(int particleReductionFactor, ICostStorage storage)
 {
     this.particleReductionFactor = particleReductionFactor;
     this.storage = storage;
 }
 public ConstSolveCostCalculator(ICostStorage storage)
 {
     this.storage = storage;
 }
Ejemplo n.º 3
0
 public CostLogic(ICostStorage costStorage)
 {
     _costStorage = costStorage;
 }
 public IFieldComCostCalculator GetCalculator(ICostStorage storage, int cellsPerSection, int particleReductionFactor)
 {
     return(new CohesionComCalculator(storage, cellsPerSection));//Ignores particleReductionFactor
 }
Ejemplo n.º 5
0
 public CohesionComCalculator(ICostStorage storage, int cellsPerSectionPerDim)
 {
     this.storage = storage;
     this.cellsPerSectionPerDim = cellsPerSectionPerDim;
 }
Ejemplo n.º 6
0
 public ReportLogic(ISocietyStorage societyStorage, ICostStorage costStorage)
 {
     _societyStorage = societyStorage;
     _costStorage    = costStorage;
 }
Ejemplo n.º 7
0
 public CostBusinessLogic(ICostStorage costStorage)
 {
     this.costStorage = costStorage;
 }
Ejemplo n.º 8
0
 public SortingCostCalculator(int particleReductionFactor, ICostStorage costStorage)
 {
     this.costStorage = costStorage;
     ptcostCalculator = new ParticleTransmissionCostCalculator(particleReductionFactor, costStorage);
 }
Ejemplo n.º 9
0
 public SimpleComCalculator(ICostStorage storage, int particleReductionFactor)
 {
     this.storage = storage;
     this.particleReductionFactor = particleReductionFactor;
 }
Ejemplo n.º 10
0
 public MovementCostCalculator(ICostStorage storage, int particleReductionFactor)
 {
     this.storage = storage;
     this.particleReductionFactor = particleReductionFactor;
 }
Ejemplo n.º 11
0
 public IFieldComCostCalculator GetCalculator(ICostStorage storage, int nbParticlesPerCell, int particleReductionFactor)
 {
     return(new SimpleComCalculator(storage, particleReductionFactor));
 }