Package core
Class Node
- java.lang.Object
-
- core.Node
-
- All Implemented Interfaces:
actuator.InterfaceTarget
,core.InterfaceScenarioElement
public class Node extends Object implements core.InterfaceScenarioElement, actuator.InterfaceTarget
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add_input_link(Link link)
void
add_output_link(Link link)
void
add_road_connection(RoadConnection rc)
Collection<Link>
get_in_links()
AbstractModel
get_model()
Collection<Link>
get_out_links()
Set<RoadConnection>
get_road_connections()
Float
get_x()
Float
get_y()
Long
getId()
long
getIdAsTarget()
core.ScenarioElementType
getSEType()
String
getTypeAsTarget()
int
num_inputs()
int
num_outputs()
void
register_actuator(Set<Long> commids, AbstractActuator act, boolean override)
jaxb.Node
to_jaxb()
-
-
-
Field Detail
-
network
public Network network
-
-
Method Detail
-
getId
public final Long getId()
- Specified by:
getId
in interfacecore.InterfaceScenarioElement
-
getSEType
public final core.ScenarioElementType getSEType()
- Specified by:
getSEType
in interfacecore.InterfaceScenarioElement
-
to_jaxb
public jaxb.Node to_jaxb()
- Specified by:
to_jaxb
in interfacecore.InterfaceScenarioElement
-
add_road_connection
public void add_road_connection(RoadConnection rc)
-
add_input_link
public void add_input_link(Link link)
-
add_output_link
public void add_output_link(Link link)
-
getTypeAsTarget
public String getTypeAsTarget()
- Specified by:
getTypeAsTarget
in interfaceactuator.InterfaceTarget
-
getIdAsTarget
public long getIdAsTarget()
- Specified by:
getIdAsTarget
in interfaceactuator.InterfaceTarget
-
get_model
public AbstractModel get_model()
- Specified by:
get_model
in interfaceactuator.InterfaceTarget
-
register_actuator
public void register_actuator(Set<Long> commids, AbstractActuator act, boolean override) throws error.OTMException
- Specified by:
register_actuator
in interfaceactuator.InterfaceTarget
- Throws:
error.OTMException
-
get_in_links
public Collection<Link> get_in_links()
-
get_out_links
public Collection<Link> get_out_links()
-
num_inputs
public int num_inputs()
-
num_outputs
public int num_outputs()
-
get_x
public Float get_x()
-
get_y
public Float get_y()
-
get_road_connections
public Set<RoadConnection> get_road_connections()
-
-