public class CrossNetworkLink extends Link implements Storable
| Modifier and Type | Class and Description |
|---|---|
static class |
CrossNetworkLink.Field
This is set of fields for input/output to XML and JSON format
|
static class |
CrossNetworkLink.Type
Possible types of data that the Link will pass
|
| Modifier and Type | Method and Description |
|---|---|
protected static CrossNetworkLink |
createCrossNetworkLink(Node fromNode,
Node toNode,
CrossNetworkLink.Type type,
String stateToPass)
Factory method to create a CrossNetworkLink instance.
|
protected void |
createLogicLink()
This will create a link in the underlying logic.
|
protected void |
destroyLogicLink()
Destroys the underlying logic link.
|
protected uk.co.agena.minerva.model.MessagePassingLink |
getLogicLink()
Returns the underlying logical link.
|
String |
getStateToPass()
Returns the state to pass with this cross-network link.
|
CrossNetworkLink.Type |
getType()
Returns the type of this cross-network link.
|
org.json.JSONObject |
toJson()
Creates a JSON representing this Link, ready for file storage.
|
compareTo, createLink, equals, getFromNode, getToNode, hashCode, setGraphics, toString, toStringExtraprotected static CrossNetworkLink createCrossNetworkLink(Node fromNode, Node toNode, CrossNetworkLink.Type type, String stateToPass) throws LinkException
fromNode - the source Link nodetoNode - the target Link nodetype - the type of CrossNetworkLinkstateToPass - state to pass (if any)LinkException - if source and target are in the same Network; no CrossNetworkLink type specified; type passes state, but state not specified; type does not pass a state but state specifiedprotected void createLogicLink()
throws LinkException
createLogicLink in class LinkLinkException - if logical link already exists or target Node already has parents; link has invalid type; or error/inconsistency in the underlying logicprotected void destroyLogicLink()
destroyLogicLink in class Linkprotected uk.co.agena.minerva.model.MessagePassingLink getLogicLink()
public CrossNetworkLink.Type getType()
public String getStateToPass()
Copyright © 2020. All rights reserved.