Skip to content
Snippets Groups Projects
  1. Jun 21, 2019
  2. Jun 19, 2019
    • erwan's avatar
      New: provide a mean to set name of algo local vars (in RIF) · bf49f806
      erwan authored
      Basically, the idea is to parse the result of the registred ('s ->
      string) function.
      
      For instance if  the user define 'v and 'v printer as follows:
      
       type state = { a : int ; b : float }
       let state_to_string s = Printf.sprintf "x=%d y=%f" s.v1 s.v2
      
      pid_x and pid_y will be used as output var names in the RIF outputs.
      
      If the user provide no name:
       let state_to_string s = Printf.sprintf "%d %f" s.v1 s.v2
      
      some names will be invented (pid_v0 and pid_v1)
      bf49f806
    • erwan's avatar
      Update: simplify the Algo API again by removing the local_env · 5afa94d3
      erwan authored
      Things that are currently broken:
      - the ability to init vars in the dot
      - controling the name of local vars in the rif output
      5afa94d3
  3. Jun 17, 2019
  4. Jun 11, 2019
  5. May 27, 2019
  6. Mar 26, 2019
  7. Mar 10, 2019
  8. Mar 09, 2019
    • erwan's avatar
      Add a neighbor type in algo local vars. · f43f69b9
      erwan authored
      Also add the list of neighbors to the init function. The rationale is that
      to give a sensible initial value to local vars of type 'Neighbor', we need
      the neighbors number.
      
      I could have chosen to pass an integer only. Well, who can the plus
      can the minus.
      f43f69b9
  9. Mar 08, 2019
Loading