Skip to content

HDM: Definition of default semantics for size_function #34

@jeromekelleher

Description

@jeromekelleher

The parser should output fully a resolved model, with non-null values for every field that effects the model. Thus, we need to specify the semantics of what the default values should be. We could do something like:

The value of an Epoch's size_function should be resolved after the epoch's start_size and end_size values have been resolved. If the start_size and end_size are equal, the size function should be resolved to "constant", or otherwise to exponential.

However, I think it's simpler if we just default to exponential, and leave it up to the implementation to realise that the growth rate is 0. They will need to do this anyway, unless we make it part of the spec that parsers should raise an error if the size function is exponential and the start and end sizes are the same. This seems like it would end up being fragile and annoying to me, though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions