I am looking to average a number of events occurring over two hour blocks throughout the week, and over every week in the month, across a number of months
For example, I would like a structure such as this MonthOfApril.Week1.HrBlk3, where there will be a total of 12 Block Hours, 4 or 5 weeks depending upon the month, and of course 12 months.
Structure using inheritance doesn't seem to work (unless I am implementing it wrong) as you can inherit from only one source. For example,
Public Class TwoHourBlock 'covers 24 hours, maintaining averages that occur over a weeks period
Public HrBlk1 As UInteger
Public HrBlk2 As UInteger
Public HrBlk3 As UInteger
Public HrBlk4 As UInteger
Public HrBlk5 As UInteger
Public HrBlk6 As UInteger
Public HrBlk7 As UInteger
Public HrBlk8 As UInteger
Public HrBlk9 As UInteger
Public HrBlk10 As UInteger
Public HrBlk11 As UInteger
Public HrBlk12 As UInteger
End Class
Public Class Week1
Inherits TwoHourBlock
End Class
Public Class Week2
Inherits TwoHourBlock
End Class
Public Class Week3
Inherits TwoHourBlock
End Class
Public Class Week4
Inherits TwoHourBlock
End Class
Public Class Week5
Inherits TwoHourBlock
End Class
Public Class Month1
Inherits Week1
Inherits Week2 'This won't work as multiple Inherits not allowed
End Class
How do I do this or should I employ nested structures
For example, I would like a structure such as this MonthOfApril.Week1.HrBlk3, where there will be a total of 12 Block Hours, 4 or 5 weeks depending upon the month, and of course 12 months.
Structure using inheritance doesn't seem to work (unless I am implementing it wrong) as you can inherit from only one source. For example,
Public Class TwoHourBlock 'covers 24 hours, maintaining averages that occur over a weeks period
Public HrBlk1 As UInteger
Public HrBlk2 As UInteger
Public HrBlk3 As UInteger
Public HrBlk4 As UInteger
Public HrBlk5 As UInteger
Public HrBlk6 As UInteger
Public HrBlk7 As UInteger
Public HrBlk8 As UInteger
Public HrBlk9 As UInteger
Public HrBlk10 As UInteger
Public HrBlk11 As UInteger
Public HrBlk12 As UInteger
End Class
Public Class Week1
Inherits TwoHourBlock
End Class
Public Class Week2
Inherits TwoHourBlock
End Class
Public Class Week3
Inherits TwoHourBlock
End Class
Public Class Week4
Inherits TwoHourBlock
End Class
Public Class Week5
Inherits TwoHourBlock
End Class
Public Class Month1
Inherits Week1
Inherits Week2 'This won't work as multiple Inherits not allowed
End Class
How do I do this or should I employ nested structures