Converts a component connection state from real to enumeration
function realToState extends Icons.Function; input Real stateAsReal; output state stateAsEnumeration; end realToState;