/**
 * 
 */
package org.concord.data.state;

import java.util.ArrayList;
import java.util.List;

import org.concord.framework.otrunk.OTControllerRegistry;
import org.concord.framework.otrunk.OTPackage;
import org.concord.framework.otrunk.OTrunk;

/**
 * @author scott
 *
 */
public class OTDataPackage
    implements OTPackage
{

	/* (non-Javadoc)
	 * @see org.concord.framework.otrunk.OTPackage#initialize(org.concord.framework.otrunk.OTrunk)
	 */
	public void initialize(OTrunk otrunk)
	{
		OTControllerRegistry registry = 
			(OTControllerRegistry) otrunk.getService(OTControllerRegistry.class);

		registry.registerControllerClass(OTWaveGeneratorController.class);
		registry.registerControllerClass(OTPropertyDataProducerController.class);
		registry.registerControllerClass(OTPropertyDataProducerController.class);
		registry.registerControllerClass(OTLinearProducerFilterController.class);
		registry.registerControllerClass(OTIntegratingProducerFilterController.class);
		registry.registerControllerClass(OTDifferentiatingProducerFilterController.class);
		registry.registerControllerClass(OTHoltsMethodSmoothingController.class);
		registry.registerControllerClass(OTDataStoreController.class);
	}
	
	public List getOTClasses() 
	{
		ArrayList list = new ArrayList();

		list.add(OTDataChannelDescription.class);
		list.add(OTDataField.class);
		list.add(OTDataFlowControl.class);
		list.add(OTDataProducer.class);
		list.add(OTDataProducerFilter.class);
		list.add(OTDataStore.class);
		list.add(OTDataTable.class);
		list.add(OTIntegratingProducerFilter.class);
		list.add(OTLinearProducerFilter.class);
		list.add(OTPropertyDataProducer.class);
		list.add(OTUnitValue.class);
		list.add(OTWaveGenerator.class);
		
		return list;
	}


}

@@ -42,60 +42,8 @@
 e;%0A%0A
-import java.util.ArrayList;%0Aimport java.util.List;%0A%0A
 impo
@@ -1158,20 +1158,24 @@
 %09public 
-List
+Class %5B%5D
  getOTCl
@@ -1192,54 +1192,34 @@
 %7B%0A%09%09
-ArrayList list = new ArrayList();%0A%0A%09%09list.add(
+return new Class %5B%5D %7B%0A%09%09%09%09
 OTDa
@@ -1240,38 +1240,30 @@
 iption.class
-);%0A%09%09list.add(
+,%0A%09%09%09%09
 OTDataField.
@@ -1263,38 +1263,30 @@
 aField.class
-);%0A%09%09list.add(
+,%0A%09%09%09%09
 OTDataFlowCo
@@ -1292,38 +1292,30 @@
 ontrol.class
-);%0A%09%09list.add(
+,%0A%09%09%09%09
 OTDataProduc
@@ -1318,38 +1318,30 @@
 oducer.class
-);%0A%09%09list.add(
+,%0A%09%09%09%09
 OTDataProduc
@@ -1350,38 +1350,30 @@
 Filter.class
-);%0A%09%09list.add(
+,%0A%09%09%09%09
 OTDataStore.
@@ -1377,30 +1377,22 @@
 re.class
-);%0A%09%09list.add(
+,%0A%09%09%09%09
 OTDataTa
@@ -1400,30 +1400,22 @@
 le.class
-);%0A%09%09list.add(
+,%0A%09%09%09%09
 OTIntegr
@@ -1439,30 +1439,22 @@
 er.class
-);%0A%09%09list.add(
+,%0A%09%09%09%09
 OTLinear
@@ -1473,30 +1473,22 @@
 er.class
-);%0A%09%09list.add(
+,%0A%09%09%09%09
 OTProper
@@ -1507,30 +1507,22 @@
 er.class
-);%0A%09%09list.add(
+,%0A%09%09%09%09
 OTUnitVa
@@ -1534,22 +1534,14 @@
 lass
-);%0A%09%09list.add(
+,%0A%09%09%09%09
 OTWa
@@ -1557,21 +1557,71 @@
 or.class
-);%0A%09%09
+,%0A%09%09%7D;%0A%09%7D%0A%0A%09public Class%5B%5D getPackageDependencies() %0A%09%7B
 %0A%09%09retur
@@ -1626,12 +1626,12 @@
 urn 
-list
+null
 ;%0A%09%7D

Add support for dependent OTPackages, and changed the OTPackage API.