genDevs.devsBridge
Class vbProcTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by genDevs.devsBridge.vbProcTest
All Implemented Interfaces:
junit.framework.Test

public class vbProcTest
extends junit.framework.TestCase

Tests the correct execution of the VB implementation of the proc model and the optimizer model. Both the java CORBa implementation from DevsFactory and the vb-Implementation should yield the same Thruput of 0.046 Do not forget to start naming service and VB-Server before.

Author:
twutz

Field Summary
(package private)  genDevs.simulation.atomicSimulator as
           
(package private)  InitializeableDigraph expf
           
(package private)  ORBHelper.ORBInfo orbInfo
           
(package private)  genDevs.modeling.digraph testDig
           
 
Constructor Summary
vbProcTest()
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
           
protected  double simulateAtomic(genDevs.modeling.IOBasicDevs g)
           
protected  double simulateCoupled(genDevs.modeling.coupledDevs c)
           
protected  void tearDown()
           
 void test_Optimizer()
          Test the access to the ADevsFactory by IOR from server output.
 void test_procJava()
          get the proc model from the Java factory
 void testProcVB()
          get the proc model from the Java factory
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

as

genDevs.simulation.atomicSimulator as

testDig

genDevs.modeling.digraph testDig

expf

InitializeableDigraph expf

orbInfo

ORBHelper.ORBInfo orbInfo
Constructor Detail

vbProcTest

public vbProcTest()
Method Detail

main

public static void main(java.lang.String[] args)

simulateAtomic

protected double simulateAtomic(genDevs.modeling.IOBasicDevs g)

simulateCoupled

protected double simulateCoupled(genDevs.modeling.coupledDevs c)

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

test_procJava

public void test_procJava()
get the proc model from the Java factory


testProcVB

public void testProcVB()
get the proc model from the Java factory


test_Optimizer

public void test_Optimizer()
Test the access to the ADevsFactory by IOR from server output. Models genr and obsvr are tested by coupling them directly.