Returns an integer mask of the port constraints of the given map

  • Parameters

    • terminal: CellState

      CelState that represents the terminal.

    • edge: CellState

      CelState that represents the edge.

    • source: boolean

      Boolean that specifies if the terminal is the source terminal.

    • defaultValue: number

      Default value to be returned if no port constraint is defined in the terminal.

    Returns number

    the mask of port constraint directions