Package 

Interface MapEnvironment

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Route<GeoPosition> computeRoute(Node<T> node, Node<T> node2) This method relies on the map data, and computes a route towards some absolute coordinate solving a TSP problem.
      abstract Route<GeoPosition> computeRoute(Node<T> node, GeoPosition coord) This method relies on the map data, and computes a route towards some absolute coordinate solving a TSP problem.
      abstract Route<GeoPosition> computeRoute(Node<T> node, GeoPosition coord, O options) This method relies on the map data, and computes a route towards some absolute coordinate solving a TSP problem.
      abstract Route<GeoPosition> computeRoute(GeoPosition p1, GeoPosition p2) This method relies on the map data, and computes a route towards some absolute coordinate solving a TSP problem.
      abstract Route<GeoPosition> computeRoute(GeoPosition from, GeoPosition to, O options) This method relies on the map data, and computes a route towards some absolute coordinate solving a TSP problem.
      abstract S getRoutingService()
      • Methods inherited from class it.unibo.alchemist.model.interfaces.BenchmarkableEnvironment

        enableBenchmark, getBenchmarkResult
      • Methods inherited from class it.unibo.alchemist.model.interfaces.Environment

        addLayer, addNode, addTerminator, getDimensions, getDistanceBetweenNodes, getIncarnation, getLayer, getLayers, getLinkingRule, getNeighborhood, getNodeByID, getNodeCount, getNodes, getNodesWithinRange, getOffset, getPosition, getSimulation, getSize, getSizeInDistanceUnits, isTerminated, makePosition, moveNodeToPosition, removeNode, setLinkingRule, setSimulation
      • Methods inherited from class java.lang.Iterable

        forEach, iterator, spliterator
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • computeRoute

         abstract Route<GeoPosition> computeRoute(Node<T> node, Node<T> node2)

        This method relies on the map data, and computes a route towards some absolute coordinate solving a TSP problem. It's up to the specific Action calling this method to effectively move nodes along the path. It uses the fastest path as metric.

        Parameters:
        node - The start node
        node2 - the second node's position will be used as destination
      • computeRoute

         abstract Route<GeoPosition> computeRoute(Node<T> node, GeoPosition coord)

        This method relies on the map data, and computes a route towards some absolute coordinate solving a TSP problem. It's up to the specific Action calling this method to effectively move nodes along the path.

        Parameters:
        node - The Node to move
        coord - The absolute coordinate where this node wants to move to
      • computeRoute

         abstract Route<GeoPosition> computeRoute(Node<T> node, GeoPosition coord, O options)

        This method relies on the map data, and computes a route towards some absolute coordinate solving a TSP problem. It's up to the specific Action calling this method to effectively move nodes along the path.

        Parameters:
        node - The Node to move
        coord - The absolute coordinate where this node wants to move to
        options - The options tipe for this route
      • computeRoute

         abstract Route<GeoPosition> computeRoute(GeoPosition p1, GeoPosition p2)

        This method relies on the map data, and computes a route towards some absolute coordinate solving a TSP problem. It's up to the specific Action calling this method to effectively move nodes along the path.

        Parameters:
        p1 - start position
        p2 - end position The absolute coordinate where this node wants to move to
      • computeRoute

         abstract Route<GeoPosition> computeRoute(GeoPosition from, GeoPosition to, O options)

        This method relies on the map data, and computes a route towards some absolute coordinate solving a TSP problem. It's up to the specific Action calling this method to effectively move nodes along the path.

        Parameters:
        from - start position
        to - end position The absolute coordinate where this node wants to move to
        options - options to use.