Bridges-Java  3.4.3
Bridges(Java API)
Public Member Functions | Package Attributes | List of all members
bridges.data_src_dependent.OsmEdge Class Reference

Detailed Description

this is a class that defines an OpenStreet Map edge

Objects from this class are typically not created by the user but contained in the OsmData object returned by bridges::connect::DataSource::getOsmData()

Check out how to use OSM data at: https://bridgesuncc.github.io/tutorials/Data_OSM.html

Author
Erik Saule, Kalpathi Subramanian,
Date
12/26/20

Public Member Functions

 OsmEdge (int source, int destination, double distance)
 
int getSource ()
 
void setSource (int source)
 
int getDestination ()
 
void setDestination (int destination)
 
double getDistance ()
 
void setDistance (double distance)
 

Package Attributes

int destination
 

Constructor & Destructor Documentation

◆ OsmEdge()

bridges.data_src_dependent.OsmEdge.OsmEdge ( int  source,
int  destination,
double  distance 
)

constructor for OsmEdge

Parameters
sourceint, index of source vertex
destinationint. index of destination vertex
distancedouble, distance between source and destination vertices

Member Function Documentation

◆ getDestination()

int bridges.data_src_dependent.OsmEdge.getDestination ( )

get index of destination vertex

Returns
int

◆ getDistance()

double bridges.data_src_dependent.OsmEdge.getDistance ( )

get distance between the source and destination vertices

Returns
int

◆ getSource()

int bridges.data_src_dependent.OsmEdge.getSource ( )

get index of source vertex

Returns
int

◆ setDestination()

void bridges.data_src_dependent.OsmEdge.setDestination ( int  destination)

set index of destination vertex

Parameters
destinationint

◆ setDistance()

void bridges.data_src_dependent.OsmEdge.setDistance ( double  distance)

set the distance between the source and destination vertices

Parameters
distancedouble

◆ setSource()

void bridges.data_src_dependent.OsmEdge.setSource ( int  source)

set index of source vertex

Parameters
sourceint

Member Data Documentation

◆ destination

int bridges.data_src_dependent.OsmEdge.destination
package

The documentation for this class was generated from the following file: