-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
For the redesigned Volume Library project we need to design a public interface for users of the volume library to call.
A VolumeLibrary class will serve as the public entry point. The primary mode of interacting with the VolumeLibrary will be its public static methods,
however to help with memory management it might be beneficial to utilize the singleton pattern. Initialization and freeing of resources can be handled by the class's constructor/destructor. Static methods will relay calls to the singleton instance.
classDiagram
class VolumeLibrary {
TreeOutput CalculateVolume(VolumeCalulationOptions options, TreeMeasurments treeData)
TreeOutput CalculateVolume(VolumeCalulationOptions options, TreeMeasurments treeData, MerchRules merchRules)
string GetVolumeEquationNumber(VolumeCalulationOptions options)
real GetHeightAtDiamater(VolumeCalulationOptions options, TreeMeasurments treeData, real diameter)
real GetDiameterAtHeight(VolumeCalulationOptions options, TreeMeasurments treeData, real height)
int GetNumberOfLog(VolumeCalulationOptions options, TreeMeasurments treeData)
string VersionNumber()
MerchRules GetDefaultMerchRules(VolumeCalculationOptions options)
}
Metadata
Metadata
Assignees
Labels
No labels