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