public abstract class NFENetworkElement extends NFEBasicModelObject
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_ACTIVE
Active property
|
static java.lang.String |
PROP_COST
Cost property
|
static java.lang.String |
PROP_GEOMETRY
Geometry property
|
static java.lang.String |
PROP_ID
ID property
|
static java.lang.String |
PROP_NAME
Name property
|
EFLAG_EXISTING, EFLAG_REMOVED
Constructor and Description |
---|
NFENetworkElement() |
Modifier and Type | Method and Description |
---|---|
abstract NFENetworkElement |
createCopy()
Returns object copy.
|
double |
getCost()
Gets the cost of the network element
|
JGeometry |
getGeometry()
gets the network element's geometry
|
long |
getId()
Gets the ID of the network element
|
abstract java.lang.String |
getKey()
Gets the network element's key.
|
java.lang.String |
getName()
Gets the network element's name
|
NFENetwork |
getNetwork()
Gets the network to which the network element belongs
|
boolean |
isActive()
Tells whether the network element is active or not
|
abstract boolean |
isLink()
Tells whether the network element is a link or not
|
abstract boolean |
isNode()
Tells whether the network element is a node or not
|
void |
setActive(boolean active)
Sets the network element as active or inactive
|
void |
setCost(double cost)
Sets the cost of the network element
|
void |
setGeometry(JGeometry geometry)
Sets the network element's geometry
|
void |
setId(long id)
Sets the ID of the network element
|
void |
setName(java.lang.String name)
Sets the name of the network element
|
void |
setNetwork(NFENetwork network)
Sets the network to which the network element belongs
|
addEditionFlag, containsEditionFlag, getEditionFlags, removeEditionFlag, setEditionFlags
public static final java.lang.String PROP_NAME
public static final java.lang.String PROP_ID
public static final java.lang.String PROP_ACTIVE
public static final java.lang.String PROP_GEOMETRY
public static final java.lang.String PROP_COST
public void setId(long id)
id
- a node or link IDpublic long getId()
public void setName(java.lang.String name)
name
- the network element's namepublic java.lang.String getName()
public void setActive(boolean active)
active
- a boolean value indicating whether the network element is active or notpublic boolean isActive()
public void setCost(double cost)
cost
- the network element's costpublic double getCost()
public void setGeometry(JGeometry geometry)
geometry
- a line string geometry for links, a point geometry for nodespublic JGeometry getGeometry()
public void setNetwork(NFENetwork network)
network
- a network instancepublic NFENetwork getNetwork()
public abstract boolean isNode()
public abstract boolean isLink()
public abstract java.lang.String getKey()
public abstract NFENetworkElement createCopy()