Changes between Version 17 and Version 18 of NetworkDynamicConverterFunctions


Ignore:
Timestamp:
11/12/12 15:57:29 (7 years ago)
Author:
lxwang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NetworkDynamicConverterFunctions

    v17 v18  
    5353==== behavior sketch and implementation notes==== 
    5454 
    55 Validate inputs 
     55'''Validate inputs''' 
    5656 
    5757 start <= end 
     
    7777 if network.list is non-NULL vertex.* and edge.* must be NULL and the reverse 
    7878 
    79 Bookeeping 
     79'''Bookeeping''' 
    8080 
    8181 if start and end values present, store in observation.period attribute 
    8282 
    83 Determines if building from network list, as that specifies both edge and vertex dynamics at the same time 
     83Determines if '''building from network list''', as that specifies both edge and vertex dynamics at the same time 
    8484 
    8585  If base.net is specified, constructs a new network with matching parameters.  If vertex or edges or attributes are present, adds them to new network as non-TEA attributes? 
     
    9191 
    9292 
    93 If not building from network list: 
     93'''If not building from network list:''' 
    9494   
    9595   
     
    100100  Determine vertex data schema. 
    101101  If toggles 
    102     activate all vertices present in base net, assuming onset time of -Inf 
     102    activate all vertices present in base net, assuming onset time of -Inf   
    103103    loop through toggles, activating and deactivating vertices at appropriate times. vertices where last toggle is to active given Inf as terminus.  
    104   If changes 
    105     activate all vertices present in base net, assuming onset time of -Inf 
     104 
     105  If changes  
     106    activate all vertices present in base net, assuming onset time of -Inf   
    106107    can convert directly to activation, deactivation lists and apply to vertices in a single pass. vertices where last change is to active given Inf as terminus 
    107   If spells 
     108 
     109  If spells   
    108110    apply activation spells to vertices 
    109111   
     
    112114If base.net exists, determine if the set of vertex.ids present in the edges data is consistent with it and take action appropriate to construct.mode    
    113115 
    114   If toggles 
    115     Add all edges present in base.net 
    116     Set initial edge state according to base net, assuming -Inf as onset. 
    117     Add all additional edges implied by toggles  
     116  If toggles   
     117    Add all edges present in base.net  
     118    Set initial edge state according to base net, assuming -Inf as onset.  
     119    Add all additional edges implied by toggles   
    118120    loop through toggles, activating and deactivating edges at appropriate times. All edges where last state is active given Inf as terminus. (Look at pavel's code to see how he did it.)  
    119121 
    120   If changes 
    121     Add all edges present in base.net 
    122     Set initial edge state according to base net, assuming -Inf as onset. 
    123     Add all additional edges implied by toggles  
     122  If changes   
     123    Add all edges present in base.net   
     124    Set initial edge state according to base net, assuming -Inf as onset.   
     125    Add all additional edges implied by toggles   
    124126    loop through changes, activating and deactivating edges at appropriate times. All edges where last state is active given Inf as terminus  
     127 
    125128  If spells 
    126129