Java-API--Dokumentation

Class MsaTester

java.lang.Object
  extended by MsaTester

public class MsaTester
extends Object

Diese Klasse kann ueberpruefen, ob ein Loesungsalgorithmus des Maximum--Sub-Array--Problems korrekt arbeitet.


Field Summary
(package private)  MaximumSubArraySolver solver
           
 
Constructor Summary
MsaTester(Class solverClass)
           
MsaTester(MaximumSubArraySolver solver)
           
MsaTester(String solverClassName)
           
 
Method Summary
(package private)  void assertEquals(Object obj1, Object obj2)
           
static void main(String[] args)
           
(package private) static void test_Loesungsvorschlaege()
           
(package private)  void test()
           
static void test(Class solverClass)
           
static void test(MaximumSubArraySolver solver)
           
static void test(String solverClassName)
           
(package private)  void testEinElementArray()
           
(package private)  void testEinElementMaximum()
           
(package private)  void testGanzerArrayMaximum()
           
(package private)  void testLeererArray()
           
(package private)  void testMaximumLinkerRand()
           
(package private)  void testMaximumMitte()
           
(package private)  void testMaximumRechterRand()
           
(package private)  void testNegativerArray()
           
(package private)  void testSolver()
           
(package private)  void testZweiElementeArray()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

solver

MaximumSubArraySolver solver
Constructor Detail

MsaTester

MsaTester(MaximumSubArraySolver solver)

MsaTester

MsaTester(Class solverClass)
    throws IllegalAccessException,
           InstantiationException
Throws:
IllegalAccessException
InstantiationException

MsaTester

MsaTester(String solverClassName)
    throws IllegalAccessException,
           InstantiationException,
           ClassNotFoundException
Throws:
IllegalAccessException
InstantiationException
ClassNotFoundException
Method Detail

test

public static void test(MaximumSubArraySolver solver)

test

public static void test(Class solverClass)
                 throws IllegalAccessException,
                        InstantiationException
Throws:
IllegalAccessException
InstantiationException

test

public static void test(String solverClassName)
                 throws IllegalAccessException,
                        InstantiationException,
                        ClassNotFoundException
Throws:
IllegalAccessException
InstantiationException
ClassNotFoundException

main

public static void main(String[] args)
                 throws Throwable
Throws:
Throwable

test_Loesungsvorschlaege

static void test_Loesungsvorschlaege()
                              throws Throwable
Throws:
Throwable

assertEquals

void assertEquals(Object obj1,
                  Object obj2)

testSolver

void testSolver()

test

void test()

testEinElementMaximum

void testEinElementMaximum()

testMaximumLinkerRand

void testMaximumLinkerRand()

testMaximumRechterRand

void testMaximumRechterRand()

testMaximumMitte

void testMaximumMitte()

testGanzerArrayMaximum

void testGanzerArrayMaximum()

testNegativerArray

void testNegativerArray()

testZweiElementeArray

void testZweiElementeArray()

testEinElementArray

void testEinElementArray()

testLeererArray

void testLeererArray()

Java-API--Dokumentation

Gehe zurueck zur Tutoriums-Homepage