Exemple #1
0
        public SelHCylinderPalletSolution(Document document, HCylinderPalletAnalysis analysis, HCylinderPalletSolution sol)
            : base(document)
        {
            _analysis = analysis;
            _analysis.AddDependancy(this);

            _solution = sol;
            ID.Name   = sol.Title;
        }
        public void ProcessAnalysis(HCylinderPalletAnalysis analysis)
        {
            _cylProperties    = analysis.CylinderProperties;
            _palletProperties = analysis.PalletProperties;
            _constraintSet    = analysis.ConstraintSet;
            if (!_constraintSet.IsValid)
            {
                throw new EngineException("Constraint set is invalid!");
            }

            analysis.Solutions = GenerateSolutions();
        }
Exemple #3
0
 public HCylinderPalletSolution(HCylinderPalletAnalysis parentAnalysis, string title)
 {
     _parentAnalysis = parentAnalysis;
     _title          = title;
 }