View Javadoc

1   
2   package org.catacomb.numeric.difnet.calc;
3   
4   import org.catacomb.numeric.difnet.StateLink;
5   
6   
7   public final class NetMapLink {
8       int peerIndex;
9       NetMapNode nodeA;
10      NetMapNode nodeB;
11      double conductance;
12      double capacitance;
13      double current;
14      double drive;
15      boolean flip;
16  
17      // workspace for sparse matrix;
18      boolean mark;
19      double wsA;
20      double wsB;
21  
22  
23      void readState(StateLink dnl) {
24          conductance = dnl.getConductance(null);
25          drive = dnl.getDrive(null);
26          capacitance = dnl.getCapacitance(null);
27          current = dnl.getIntrinsicCurrent(null);
28          wsA = 0.;
29          wsB = 0.;
30      }
31  
32  
33  
34      void reverseEnds() {
35          flip = !flip;
36          NetMapNode nodeC = nodeA;
37          nodeA = nodeB;
38          nodeB = nodeC;
39      }
40  
41  
42  }
43  
44  
45  
46  
47  
48