public BoxCasePalletAnalysis(BoxProperties boxProperties, List<PalletSolutionDesc> palletSolutionList, BoxCasePalletConstraintSet constraintSet) : base(boxProperties.ParentDocument) { if (!constraintSet.IsValid) throw new Exception("Using invalid case constraintset -> Can not instantiate case analysis!"); _boxProperties = boxProperties; boxProperties.AddDependancy(this); _palletSolutionsList = palletSolutionList; _constraintSet = constraintSet; }
public BoxCasePalletAnalysis(BoxProperties boxProperties, List <PalletSolutionDesc> palletSolutionList, BoxCasePalletConstraintSet constraintSet) : base(boxProperties.ParentDocument) { if (!constraintSet.IsValid) { throw new Exception("Using invalid case constraintset -> Can not instantiate case analysis!"); } _boxProperties = boxProperties; boxProperties.AddDependancy(this); _palletSolutionsList = palletSolutionList; _constraintSet = constraintSet; }
/// <summary> /// constructor /// </summary> /// <param name="doc">Reference of parent <see cref="Document"/></param> /// <param name="box">Reference </param> public PackProperties(Document doc , BoxProperties box , PackArrangement arrangement , HalfAxis.HAxis orientation , PackWrapper wrapper) : base(doc) { _boxProperties = box; _boxProperties.AddDependancy(this); _arrangement = arrangement; _orientation = orientation; _wrapper = wrapper; }
/// <summary> /// Instantiate a new case from a box, a case definition and a case optimization constraintset /// </summary> /// <param name="document">Parent document</param> /// <param name="bProperties">Box properties</param> /// <param name="constraintSet">Case optimization constraint set</param> public CaseOfBoxesProperties(Document document , BoxProperties boxProperties , CaseDefinition caseDefinition , CaseOptimConstraintSet constraintSet) : base(document) { _boxProperties = boxProperties; _boxProperties.AddDependancy(this); _caseDefinition = caseDefinition; _constraintSet = constraintSet; base.Weight = _caseDefinition.CaseEmptyWeight(_boxProperties, _constraintSet); OnAttributeModified(boxProperties); }