Returns an integer mask of the port constraints of the given map
CelState that represents the terminal.
CelState that represents the edge.
Boolean that specifies if the terminal is the source terminal.
Default value to be returned if no port constraint is defined in the terminal.
the mask of port constraint directions
Returns an integer mask of the port constraints of the given map