Uses of Class
org.opentrafficsim.core.network.NetworkException
-
Packages that use NetworkException Package Description org.opentrafficsim.core.gtu GTU (Generalized Travel Unit) is the base class for cars, trains, pedestrians, etc.org.opentrafficsim.core.gtu.perception The perception module of a GTU is responsible for perceiving (sensing) the environment of the GTU, which includes the locations of other GTUs.org.opentrafficsim.core.gtu.plan.strategical Strategical planners.org.opentrafficsim.core.gtu.plan.tactical Tactical planners generate operational plans that are in line with reaching the goals of the strategical plan.org.opentrafficsim.core.network Classes that build a network with nodes and links.org.opentrafficsim.core.network.factory.xml.units Parsers for various XML values.org.opentrafficsim.core.network.route Routes and route probabilities.org.opentrafficsim.core.object Static objects that the GTU might have to avoid. -
-
Uses of NetworkException in org.opentrafficsim.core.gtu
Methods in org.opentrafficsim.core.gtu that throw NetworkException Modifier and Type Method Description protected voidAbstractGtu. interruptMove()Interrupt the move and ask for a new plan.protected booleanAbstractGtu. move(OrientedPoint3d fromLocation)Move from the current location according to an operational plan to a location that will bring us nearer to reaching the location provided by the strategical planner. -
Uses of NetworkException in org.opentrafficsim.core.gtu.perception
Methods in org.opentrafficsim.core.gtu.perception that throw NetworkException Modifier and Type Method Description voidAbstractPerception. perceive()Invoked by the GTU prior while determining an operational plan.voidPerception. perceive()Invoked by the GTU prior while determining an operational plan.default voidEgoPerception. updateAll()Update all information in the perception category.voidPerceptionCategory. updateAll()Update all information in the perception category. -
Uses of NetworkException in org.opentrafficsim.core.gtu.plan.strategical
Methods in org.opentrafficsim.core.gtu.plan.strategical that throw NetworkException Modifier and Type Method Description LinkDirectionStrategicalPlanner. nextLinkDirection(Link link, GtuDirectionality direction, GtuType gtuType)Determine the next link and driving direction (with or against the design line) in a network based on a current Link we are on.LinkDirectionStrategicalPlanner. nextLinkDirection(Node node, Link previousLink, GtuType gtuType)Determine the next link and driving direction (with or against the design line) in a network based on a node and a driving direction of the GTU.NodeStrategicalPlanner. nextNode(Link link, GtuDirectionality direction, GtuType gtuType)Determine the next node in a network based on a current Link we are on.NodeStrategicalPlanner. nextNode(Node node, Link previousLink, GtuType gtuType)Determine the next node in a network based on a given node. -
Uses of NetworkException in org.opentrafficsim.core.gtu.plan.tactical
Methods in org.opentrafficsim.core.gtu.plan.tactical that throw NetworkException Modifier and Type Method Description OperationalPlanTacticalPlanner. generateOperationalPlan(Time startTime, OrientedPoint3d locationAtStartTime)Generate an operational plan, for now or for in the future. -
Uses of NetworkException in org.opentrafficsim.core.network
Methods in org.opentrafficsim.core.network that throw NetworkException Modifier and Type Method Description voidOTSNode. addConnection(GtuType gtuType, Link incomingLink, Link outgoingLink)Add a single connection for a GTU type to the connections map.voidOTSNode. addConnections(GtuType gtuType, Link incomingLink, Set<Link> outgoingLinks)Add a set of connections for a GTU type to the connections map.voidNetwork. addInvisibleObject(InvisibleObjectInterface object)Add an ObjectInterface implementing object to this Network.voidOTSNetwork. addInvisibleObject(InvisibleObjectInterface object)Add an ObjectInterface implementing object to this Network.voidNetwork. addLink(Link link)Register a link in this Network.voidOTSNetwork. addLink(Link link)Register a link in this Network.voidNetwork. addNode(Node node)Register a node in this Network.voidOTSNetwork. addNode(Node node)Register a node in this Network.voidNetwork. addObject(ObjectInterface object)Add an ObjectInterface implementing object to this Network.voidOTSNetwork. addObject(ObjectInterface object)Add an ObjectInterface implementing object to this Network.voidNetwork. addRoute(GtuType gtuType, Route route)Add a route to this Network.voidOTSNetwork. addRoute(GtuType gtuType, Route route)Add a route to this Network.CapacityOTSLinkCapacityOTSLink. clone(OTSNetwork newNetwork)Clone this OTSLink for e.g., copying a network.OTSLinkOTSLink. clone(OTSNetwork newNetwork)Clone this OTSLink for e.g., copying a network.static OTSNetworkOTSNetworkUtils. clone(OTSNetwork network, String newId, OTSSimulatorInterface newSimulator)Clone an OTSNetwork.OTSNodeOTSNode. clone1(Network newNetwork)Clone the OTSode for e.g., copying a network.OTSNodeOTSNode. clone2(Network newNetwork)Complete the cloning of the OTSode for e.g., copying a network.LinkNetwork. getLink(String nodeId1, String nodeId2)Find a link between node1 and node2 and return it if it exists in this Network.LinkOTSNetwork. getLink(String nodeId1, String nodeId2)Find a link between node1 and node2 and return it if it exists in this Network.default CompleteRouteNetwork. getShortestRouteBetween(GtuType gtuType, Node nodeFrom, Node nodeTo)Calculate the shortest route between two nodes in this Network.default CompleteRouteNetwork. getShortestRouteBetween(GtuType gtuType, Node nodeFrom, Node nodeTo, List<Node> nodesVia)Calculate the shortest route between two nodes in this Network, via a list of intermediate nodes.CompleteRouteNetwork. getShortestRouteBetween(GtuType gtuType, Node nodeFrom, Node nodeTo, List<Node> nodesVia, LinkWeight linkWeight)Calculate the shortest route between two nodes in this Network, via a list of intermediate nodes.CompleteRouteNetwork. getShortestRouteBetween(GtuType gtuType, Node nodeFrom, Node nodeTo, LinkWeight linkWeight)Calculate the shortest route between two nodes in this Network.CompleteRouteOTSNetwork. getShortestRouteBetween(GtuType gtuType, Node nodeFrom, Node nodeTo, List<Node> nodesVia)Calculate the shortest route between two nodes in this Network, via a list of intermediate nodes.CompleteRouteOTSNetwork. getShortestRouteBetween(GtuType gtuType, Node nodeFrom, Node nodeTo, List<Node> nodesVia, LinkWeight linkWeight)Calculate the shortest route between two nodes in this Network, via a list of intermediate nodes.CompleteRouteOTSNetwork. getShortestRouteBetween(GtuType gtuType, Node nodeFrom, Node nodeTo, LinkWeight linkWeight)Calculate the shortest route between two nodes in this Network.Set<Link>Node. nextLinks(GtuType gtuType, Link prevLink)Determine the links connecting from the previous Link via this Node for the given GTU type.Set<Link>OTSNode. nextLinks(GtuType gtuType, Link prevLink)Determine the links connecting from the previous Link via this Node for the given GTU type.voidNetwork. removeInvisibleObject(InvisibleObjectInterface object)Remove an ObjectInterface implementing object form this Network.voidOTSNetwork. removeInvisibleObject(InvisibleObjectInterface object)Remove an ObjectInterface implementing object form this Network.voidNetwork. removeLink(Link link)Unregister a link from this Network.voidOTSNetwork. removeLink(Link link)Unregister a link from this Network.voidNetwork. removeNode(Node node)Unregister a node from this Network.voidOTSNetwork. removeNode(Node node)Unregister a node from this Network.voidNetwork. removeObject(ObjectInterface object)Remove an ObjectInterface implementing object form this Network.voidOTSNetwork. removeObject(ObjectInterface object)Remove an ObjectInterface implementing object form this Network.voidNetwork. removeRoute(GtuType gtuType, Route route)Remove the route from this Network, e.g.voidOTSNetwork. removeRoute(GtuType gtuType, Route route)Remove the route from this Network, e.g.Constructors in org.opentrafficsim.core.network that throw NetworkException Constructor Description CapacityOTSLink(Network network, String id, Node startNode, Node endNode, LinkType linkType, PolyLine3d designLine, Frequency capacity)Construct a new CapacityOTSLink.CapacityOTSLink(Network newNetwork, CapacityOTSLink link)Clone a link for a new network.OTSLink(Network network, String id, Node startNode, Node endNode, LinkType linkType, PolyLine3d designLine)Construct a new OTSLink and register it in a Network.OTSLink(Network newNetwork, OTSLink link)Clone a link for a new Network.OTSNode(Network network, String id, Point3d point)Construct a new OTSNode with direction East (you probably don't want to use this constructor) and add it to a Network.OTSNode(Network network, String id, Point3d point, double heading)Construct a new OTSNode and add it to a Network. -
Uses of NetworkException in org.opentrafficsim.core.network.factory.xml.units
Methods in org.opentrafficsim.core.network.factory.xml.units that throw NetworkException Modifier and Type Method Description static ColorColors. parseColor(String colorStr)Parse a String that describes a color.static LongitudinalDirectionalityDirections. parseDirection(String dirStr)Parse a longitudinal direction.static ContinuousDistDoubleScalar.Rel<Duration,DurationUnit>Distributions. parseDurationDist(String s)Parse a relative time distribution, e.g.static ContinuousDistDoubleScalar.Rel<Length,LengthUnit>Distributions. parseLengthDist(String s)Parse a relative length distribution, e.g.static ContinuousDistDoubleScalar.Abs<Position,PositionUnit,LengthUnit>Distributions. parsePositionDist(String s)Parse an absolute length distribution, e.g.static ContinuousDistDoubleScalar.Rel<Speed,SpeedUnit>Distributions. parseSpeedDist(String s)Parse a relative speed distribution, e.g.static ContinuousDistDoubleScalar.Abs<Time,TimeUnit,DurationUnit>Distributions. parseTimeDist(String s)Parse an absolute time distribution, e.g. -
Uses of NetworkException in org.opentrafficsim.core.network.route
Methods in org.opentrafficsim.core.network.route that throw NetworkException Modifier and Type Method Description CompleteRouteCompleteRoute. addNode(Node node)Add a node to the end of the node list of this Route.RouteRoute. addNode(Node node)Add a node to the end of the node list of this Route.CompleteRouteCompleteRoute. clone(Network newNetwork)Clone this Route.RouteRoute. clone(Network newNetwork)Clone this Route.NodeRoute. destinationNode()Retrieve the last Node of this Route.NodeRoute. getNode(int i)Retrieve one Node of this Route.NodeRoute. originNode()Retrieve the origin node of this Route.Constructors in org.opentrafficsim.core.network.route that throw NetworkException Constructor Description CompleteRoute(String id, GtuType gtuType, List<Node> nodes)Construct a new CompleteRoute for a specific GTUType, based on an initial list of nodes. -
Uses of NetworkException in org.opentrafficsim.core.object
Methods in org.opentrafficsim.core.object that throw NetworkException Modifier and Type Method Description InvisibleObjectInterfaceInvisibleObjectInterface. clone(OTSSimulatorInterface newSimulator, Network newNetwork)Duplicate the invisibleObject in a new simulator and network.StaticObjectStaticObject. clone(Network newNetwork, boolean animation)Clone this StaticObject for e.g., copying a network.static StaticObjectStaticObject. create(String id, Polygon3d geometry)Create a new StaticObject with zero minimumRelativeHeight and zero maximumRelativeHeight and carry out the initialization after it has been fully created.static StaticObjectStaticObject. create(String id, Polygon3d geometry, Length minimumRelativeHeight, Length maximumRelativeHeight)Make a static object and carry out the initialization after it has been fully created.protected voidStaticObject. init()Initialize the object after it has been fully created.
-