Class SimFieldLink
java.lang.Object
net.simplace.sim.model.SimFieldLink
Edge of the solution graph between two field containers, holding the variable links between them.
- Author:
- Andreas Enders
-
Constructor Summary
ConstructorsConstructorDescriptionSimFieldLink(FWSimFieldContainer tSourceSimO, FWSimFieldContainer tDestSimO) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSimLink(SimVarLink aSimLink) clone()booleanIdentity, consistent withhashCode(): edges are keys in the graph's hash maps.inthashCode()booleanvoidremoveSimLink(SimVarLink aSimVarLink) voidsetDestSimObject(FWSimFieldContainer aDestVertex) voidsetSourceSimObject(FWSimFieldContainer aSourceVertex) toString()
-
Constructor Details
-
SimFieldLink
- Parameters:
tSourceSimO- source field containertDestSimO- destination field container
-
-
Method Details
-
getSourceSimObject
- Returns:
- the iSourceVertex
-
setSourceSimObject
- Parameters:
aSourceVertex- source field container
-
setDestSimObject
- Parameters:
aDestVertex- destination field container
-
getDestSimObject
- Returns:
- the iDestVertex
-
getSimLinks
- Returns:
- the simLinkList
-
addSimLink
- Parameters:
aSimLink- variable link to add
-
removeSimLink
- Parameters:
aSimVarLink- variable link to remove
-
isInOrder
public boolean isInOrder()- Returns:
trueif the order number of the source is not greater than that of the destination (checked at each call, so a changed order of execution is shown at once);falsemeans the destination gets the value of the previous step
-
toString
-
equals
Identity, consistent withhashCode(): edges are keys in the graph's hash maps. (It compared toString(), i.e. order numbers and link count, which changes when links are added, while hashCode was identity.) -
getSimVarLinksInfo
- Returns:
- the variable links of this edge as HTML, e.g. for an info dialog of the GUI
-
clone
-
hashCode
-