Class NetLink
- java.lang.Object
-
- org.hortonmachine.gears.libs.modules.NetLink
-
public class NetLink extends Object
A net channel helper class to order netnumbering in a hierarchy.- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Field Summary
Fields Modifier and Type Field Description IntegerdesiredChainNetLinkA possible parent in the chain of desired basin aggregations.intdownColThe col of the last downstream node that is part of the link's basin.intdownLinkColThe col of the first node of the next downstream link.intdownLinkRowThe row of the first node of the next downstream link.intdownRowThe row of the last downstream node that is part of the link's basin.intnumintupColThe col of the last upstream node.intupRowThe row of the last upstream node.
-
Constructor Summary
Constructors Constructor Description NetLink(int num, int upCol, int upRow, int downCol, int downRow, int downLinkCol, int downLinkRow, boolean isFixed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect(NetLink other)booleanequals(Object obj)NetLinkgetDownStreamLink()intgetTca()List<NetLink>getUpStreamLinks()inthashCode()booleanisFixed()voidsetDownStreamLink(NetLink downStreamLink)voidsetTca(int tca)StringtoJsonString()StringtoMindMapString()StringtoString()
-
-
-
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.
-
-
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)
-
connect
public void connect(NetLink other)
-
toMindMapString
public String toMindMapString()
-
toJsonString
public String toJsonString()
-
-