Access and set object properties
mainData stored within an S7 object is referred to as properties. You use the @ operator to both retrieve and assign property values.
Properties are automatically validated against the types declared in new_class() and against the class's validator function upon assignment.
x@start # Get property
x@end <- 20 # Set property