public class FlowModelImpl extends Object
| Type | Property and Description |
|---|---|
BooleanProperty |
visible |
ReadOnlyProperty<VisualizationRequest> |
visualizationRequest
Returns the visualization request property of this model.
|
| Constructor and Description |
|---|
FlowModelImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnections(Connections connections,
String flowType)
Adds the specified connections to this flow.
|
void |
clear()
Clears this flow, i.e., removes all nodes and connections.
|
ConnectionResult |
connect(Connector s,
Connector r)
Requests the specified connection.
|
ConnectionResult |
connect(VNode s,
VNode r,
String type)
Requests the specified connection.
|
ObservableMap<String,Connections> |
getAllConnections()
Returns all connections of this flow.
|
Connections |
getConnections(String type)
Returns the all connections of the specified flow/connection type
|
Class<? extends VNode> |
getFlowNodeClass()
Returns the flow node implementation class used by this flow.
|
IdGenerator |
getIdGenerator()
Returns the id generator used by this flow.
|
NodeLookup |
getNodeLookup()
Returns the node lookup that is used by this flow.
|
ObservableList<VNode> |
getNodes()
Returns the nodes of this flow.
|
VNode |
getReceiver(Connection c)
Returns the receiver of the specified connection.
|
VNode |
getSender(Connection c)
Returns the sender of the specified connection.
|
VisualizationRequest |
getVisualizationRequest()
Gets the value of the property visualizationRequest.
|
boolean |
isVisible()
Gets the value of the property visible.
|
boolean |
isVisualizationRequestInitialized()
Determines whether the visualization request is already initialized.
|
VNode |
remove(VNode n)
Removes the specified node from this flow.
|
void |
setFlowNodeClass(Class<? extends VNode> cls)
Defines the flow node implementation class used by this flow model.
|
void |
setIdGenerator(IdGenerator idGenerator)
Defines the id generator that shall be used by this flow.
|
void |
setNodeLookup(NodeLookup nodeLookup)
Defines the node lookup that shall be used by this flow.
|
void |
setVisible(boolean b)
Sets the value of the property visible.
|
void |
setVisualizationRequest(VisualizationRequest vReq)
Sets the value of the property visualizationRequest.
|
ConnectionResult |
tryConnect(Connector s,
Connector r)
Attempts to create the specified connection.
|
ConnectionResult |
tryConnect(VNode s,
VNode r,
String type)
Attempts to create the specified connection.
|
BooleanProperty |
visibleProperty() |
ReadOnlyProperty<VisualizationRequest> |
visualizationRequestProperty()
Returns the visualization request property of this model.
|
public BooleanProperty visibleProperty
isVisible(),
setVisible(boolean)public ReadOnlyProperty<VisualizationRequest> visualizationRequestProperty
getVisualizationRequest(),
setVisualizationRequest(VisualizationRequest)public BooleanProperty visibleProperty()
isVisible(),
setVisible(boolean)public void setVisible(boolean b)
public boolean isVisible()
public ConnectionResult tryConnect(VNode s, VNode r, String type)
s - sender node (uses main output connector of this node if
specified)r - receiver node (uses main input connector of this node if
specified)type - connection typepublic ConnectionResult connect(VNode s, VNode r, String type)
s - sender noder - receiver nodetype - connection typepublic ConnectionResult tryConnect(Connector s, Connector r)
s - sender connectorr - receiver connectorpublic ConnectionResult connect(Connector s, Connector r)
s - sender noder - receiver nodepublic ObservableList<VNode> getNodes()
public void clear()
public VNode remove(VNode n)
n - the node to removenull if no node has been removedpublic ObservableMap<String,Connections> getAllConnections()
public Connections getConnections(String type)
type - connection typepublic VNode getSender(Connection c)
c - connectionnull if
the node does not existpublic VNode getReceiver(Connection c)
c - connectionnull if
the node does not existpublic void setFlowNodeClass(Class<? extends VNode> cls)
cls - flow node implementation classpublic Class<? extends VNode> getFlowNodeClass()
public void addConnections(Connections connections, String flowType)
connections - connections to addflowType - connection typepublic VisualizationRequest getVisualizationRequest()
null if no visualization
request existspublic void setVisualizationRequest(VisualizationRequest vReq)
vReq - visualization requestpublic IdGenerator getIdGenerator()
public void setIdGenerator(IdGenerator idGenerator)
idGenerator - the idGenerator to setpublic NodeLookup getNodeLookup()
public void setNodeLookup(NodeLookup nodeLookup)
nodeLookup - the nodeLookup to setpublic ReadOnlyProperty<VisualizationRequest> visualizationRequestProperty()
ModelgetVisualizationRequest(),
setVisualizationRequest(VisualizationRequest)public boolean isVisualizationRequestInitialized()
ModelModel.getVisualizationRequest() can cause
initialization.true if the visualization request is already
initialized