Class NetLink


  • public class NetLink
    extends Object
    A net channel helper class to order netnumbering in a hierarchy.
    Author:
    Andrea Antonello (www.hydrologis.com)
    • Field Detail

      • num

        public int num
      • upRow

        public int upRow
        The row of the last upstream node.
      • upCol

        public int upCol
        The col of the last upstream node.
      • downRow

        public int downRow
        The row of the last downstream node that is part of the link's basin.
      • downCol

        public int downCol
        The col of the last downstream node that is part of the link's basin.
      • downLinkRow

        public int downLinkRow
        The row of the first node of the next downstream link.
      • downLinkCol

        public int downLinkCol
        The col of the first node of the next downstream link.
      • desiredChainNetLink

        public Integer desiredChainNetLink
        A possible parent in the chain of desired basin aggregations. If this is not null, then this basin belongs to the one with this id.
    • Constructor Detail

      • NetLink

        public NetLink​(int num,
                       int upCol,
                       int upRow,
                       int downCol,
                       int downRow,
                       int downLinkCol,
                       int downLinkRow,
                       boolean isFixed)
    • Method Detail

      • isFixed

        public boolean isFixed()
      • setTca

        public void setTca​(int tca)
      • getTca

        public int getTca()
      • getDownStreamLink

        public NetLink getDownStreamLink()
      • setDownStreamLink

        public void setDownStreamLink​(NetLink downStreamLink)
      • getUpStreamLinks

        public List<NetLink> getUpStreamLinks()
      • connect

        public void connect​(NetLink other)
      • toMindMapString

        public String toMindMapString()
      • toJsonString

        public String toJsonString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object