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.BenchmarkableEnvironment

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

        addGlobalReaction, addLayer, addNode, addTerminator, getDimensions, getDistanceBetweenNodes, getGlobalReactions, getIncarnation, getLayer, getLayers, getLinkingRule, getNeighborhood, getNodeByID, getNodeCount, getNodes, getNodesWithinRange, getOffset, getPosition, getSimulation, getSize, getSizeInDistanceUnits, isTerminated, makePosition, moveNodeToPosition, removeGlobalReaction, 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 it.unibo.alchemist.model.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
        Returns:

        A Route object describing the path the node should follow

      • 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 it.unibo.alchemist.model.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
        Returns:

        A Route object describing the path the node should follow

      • 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 it.unibo.alchemist.model.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
        Returns:

        A Route object describing the path the node should follow

      • 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 it.unibo.alchemist.model.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
        Returns:

        A Route object describing the path the node should follow

      • 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 it.unibo.alchemist.model.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.
        Returns:

        A Route object describing the path the node should follow