Loading...
Searching...
No Matches
com.navigine.idl.java.ElevationGraph Class Referenceabstract

Class describing a graph that connects the sublocations. More...

+ Inheritance diagram for com.navigine.idl.java.ElevationGraph:

Public Member Functions

abstract ArrayList< GraphEdgegetEdges ()
 List of edges that connect two sublocations GraphEdge.
 
abstract boolean isValid ()
 

Detailed Description

Class describing a graph that connects the sublocations.

Referenced from Location

Definition at line 17 of file ElevationGraph.java.

Member Function Documentation

◆ getEdges()

abstract ArrayList< GraphEdge > com.navigine.idl.java.ElevationGraph.getEdges ( )
abstract

List of edges that connect two sublocations GraphEdge.

Returns

Java code snippet:

// Get elevation graph edges
java.util.ArrayList<GraphEdge> edges = elevationGraph.getEdges();
System.out.println("Number of elevation graph edges: " + edges.size());
// Demonstrate each edge
for (int i = 0; i < edges.size(); i++) {
GraphEdge edge = edges.get(i);
System.out.println("Elevation graph edge " + (i + 1) + ":");
}

Kotlin code snippet:

// Get elevation graph edges
val edges = elevationGraph.edges
println("Number of elevation graph edges: ${edges.size}")
// Demonstrate each edge
edges.forEachIndexed { index, edge ->
println("Elevation graph edge ${index + 1}:")
demonstrateGraphEdgeUsage(edge)
}

Reimplemented in com.navigine.idl.java.internal.ElevationGraphBinding.

◆ isValid()

abstract boolean com.navigine.idl.java.ElevationGraph.isValid ( )
abstract

Tells if this ElevationGraph is valid or not. Any other method (except for this one) called on an invalid ElevationGraph will throw java.lang.RuntimeException.

Reimplemented in com.navigine.idl.java.internal.ElevationGraphBinding.


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