function stateToReal extends Icons.Function; input state stateAsEnumeration; output Real stateAsReal; end stateToReal;