FEJDMath
Class Readers

java.lang.Object
  extended byFEJDMath.Readers

public class Readers
extends java.lang.Object

Read the net and dat files and save the data in the other objects (domain, elements, nodes, borders, etc.)


Constructor Summary
Readers()
           
 
Method Summary
 int isAtIndex(double x, double y, java.util.Vector mpArray)
          If the point of coordinates (x,y) belongs to the vector mpArray, this function returns its index in the vector.
private  double[] readDouble(java.lang.String s, int nbr)
          Returns an array of nbr double that are read from the String s
 void readFile(Mesh m, java.lang.String fichier1, java.lang.String fichier2, boolean isApplet)
          Reads the net and dat files and save the data in the other objects (domain, elements, nodes, borders, etc.)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Readers

public Readers()
Method Detail

readDouble

private double[] readDouble(java.lang.String s,
                            int nbr)
                     throws java.io.IOException
Returns an array of nbr double that are read from the String s

Throws:
java.io.IOException

isAtIndex

public int isAtIndex(double x,
                     double y,
                     java.util.Vector mpArray)
If the point of coordinates (x,y) belongs to the vector mpArray, this function returns its index in the vector. Else, it returns -1


readFile

public void readFile(Mesh m,
                     java.lang.String fichier1,
                     java.lang.String fichier2,
                     boolean isApplet)
Reads the net and dat files and save the data in the other objects (domain, elements, nodes, borders, etc.)