public class FlowLink
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
exit
Marks links which point to an exit node (i.e.
|
private int |
id
The link ID.
|
private int |
source
The source
node ID. |
private int |
target
The target
node ID. |
private java.lang.String |
text
The link's text.
|
private java.lang.String |
type
The link's type.
|
Constructor and Description |
---|
FlowLink(int id,
int source,
int target,
java.lang.String text,
java.lang.String type)
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getId()
Get the link's
id . |
int |
getSource()
Get the link's
source . |
int |
getTarget()
Get the link's
target . |
java.lang.String |
getText()
Get the link's
text . |
java.lang.String |
getType()
Get the link's
type . |
boolean |
isExit()
Get the link's
exit state. |
void |
setExit(boolean exit)
Set the link's
exit state. |
void |
setId(int id)
Set the link's
id . |
void |
setSource(int source)
Set the link's
source . |
void |
setTarget(int target)
Set the link's
target . |
void |
setText(java.lang.String text)
Set the link's
text . |
void |
setType(java.lang.String type)
Set the link's
type . |
private int id
private int source
node
ID.private int target
node
ID.private java.lang.String text
null
or empty.private boolean exit
private java.lang.String type
public FlowLink(int id, int source, int target, java.lang.String text, java.lang.String type)
id
- The link's ID.source
- The link's source.target
- The link's target.text
- The link's text.type
- The link's type.public int getSource()
source
.public void setSource(int source)
source
.source
- The link's source.public int getTarget()
target
.public void setTarget(int target)
target
.target
- The link's target.public java.lang.String getText()
text
.public void setText(java.lang.String text)
text
.text
- The link's text.public int getId()
id
.public void setId(int id)
id
.id
- The link's id.public boolean isExit()
exit
state.public void setExit(boolean exit)
exit
state.exit
- The exit state.public java.lang.String getType()
type
.public void setType(java.lang.String type)
type
.type
- The link's type.