View Javadoc

1   
2   package org.catacomb.numeric.mesh;
3   
4   /*
5     A NodeNet is one where the entire net is specified by nodes, which have
6     get-neighbors method;
7   
8   */
9   
10  
11  public interface MeshPoint {
12  
13      int getNeighborCount();
14  
15      MeshPoint[] getNeighbors();
16  
17  
18      int getIDIndex();
19  
20      void addNeighbor(MeshPoint nnn);
21  
22      void replaceNeighbor(MeshPoint oldNode, MeshPoint newNode);
23  
24      void disconnect();  // kill links once node is dead;
25  
26      void setWork(int i);
27  
28      int getWork();
29  
30  
31      double getX();
32      double getY();
33      double getZ();
34      double getR();
35  
36  
37      void setX(double x);
38      void setY(double y);
39      void setZ(double z);
40      void setR(double r);
41  
42  
43  
44      // constuctors for the particular implementing class;
45      MeshPoint newPoint();
46  
47      MeshPoint[] newPointArray(int n);
48  
49  
50  }