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