Class DynGraphWalk

java.lang.Object
casa.lepton.walk.GraphWalk
casa.lepton.walk.dynwalk.DynGraphWalk
All Implemented Interfaces:
Walk

public class DynGraphWalk extends GraphWalk
Un GraphWalk dont des arcs peuvent être supprimés ou ajoutés dynamiquement Les arcs sont désignés par leur identifiant dans le fichier DGS.
  • Constructor Details

    • DynGraphWalk

      public DynGraphWalk(casa.util.geom.AreaCar area, long minWait, long maxWait, double minSpeed, double maxSpeed, org.graphstream.graph.Graph graph, String pauseType, Random random)
  • Method Details

    • removeEdge

      public void removeEdge(String id)
      Suppression d'un arc du graphe
      Parameters:
      id - identifiant de l'arc
    • addEdge

      public void addEdge(String id)
      Ajout d'un arc au graphe
      Parameters:
      id - de l'arc qui avait été retiré par removeEdge(String)
    • getWalker

      public Walker getWalker(long time, String nodeId)
      Description copied from interface: Walk
      Returns a new Walker that will move according to the mobility model implemented in this instance of Walk.
      Specified by:
      getWalker in interface Walk
      Overrides:
      getWalker in class GraphWalk
      Parameters:
      time - the time of creation of this walker
      Returns:
      a new Walker, whose mobility starts at the specified time