fhm.edu.fem.calc.objects.matrix
Class MatrixFactory

java.lang.Object
  extended by fhm.edu.fem.calc.objects.matrix.MatrixFactory

public class MatrixFactory
extends java.lang.Object

Class Description: This class creates the different types of matrices

Author:
Thomas Woellert (thomas@woellert.net), Stefan Weissbach (weissbst@gmx.de)

Field Summary
protected static Logger localLogger
           
 
Method Summary
static MatrixHull createHullMatrix(java.lang.String name, double[][] values)
          Create a new Hull Matrix
static MatrixHull createHullMatrix(java.lang.String name, int size)
          Create a new Hull Matrix
static MatrixStandard createStandardMatrix(java.lang.String name, double[][] values)
          Create a new Standard Matrix
static MatrixStandard createStandardMatrix(java.lang.String name, int size)
          Create a new Standard Matrix
static Matrix createUserDefinedMatrix(java.lang.String name, double[][] values)
          Creates the type of matrix the user defined in the constants file
static Matrix createUserDefinedMatrix(java.lang.String name, int size)
          Creates the type of matrix the user defined in the constants file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

localLogger

protected static Logger localLogger
Method Detail

createHullMatrix

public static MatrixHull createHullMatrix(java.lang.String name,
                                          double[][] values)
Create a new Hull Matrix

Parameters:
name, - the name of the matrix
values, - double array holding the values to store
Returns:
the created matrix

createHullMatrix

public static MatrixHull createHullMatrix(java.lang.String name,
                                          int size)
Create a new Hull Matrix

Parameters:
name, - the name of the matrix
size, - the size of the matrix (symmetric)
Returns:
the created matrix

createStandardMatrix

public static MatrixStandard createStandardMatrix(java.lang.String name,
                                                  double[][] values)
Create a new Standard Matrix

Parameters:
name, - the name of the matrix
values, - double array holding the values to store
Returns:
the created matrix

createStandardMatrix

public static MatrixStandard createStandardMatrix(java.lang.String name,
                                                  int size)
Create a new Standard Matrix

Parameters:
name, - the name of the matrix
size, - the size of the matrix (symmetric)
Returns:
the created matrix

createUserDefinedMatrix

public static Matrix createUserDefinedMatrix(java.lang.String name,
                                             double[][] values)
Creates the type of matrix the user defined in the constants file

Parameters:
name, - the name of the matrix
values, - double array holding the values (has to be quadratic)
Returns:
the created matrix

createUserDefinedMatrix

public static Matrix createUserDefinedMatrix(java.lang.String name,
                                             int size)
Creates the type of matrix the user defined in the constants file

Parameters:
name, - the name of the matrix
size, - the size of the matrix (symmetric)
Returns:
the created matrix