package analysis.dynamicsim.hierarchical.states;

import java.util.HashMap;

import org.sbml.jsbml.Model;

public class ArraysState extends HierarchicalState
{

	public ArraysState(HashMap<String, Model> models, String bioModel,
			String submodelID)
	{
		super(models, bioModel, submodelID);
	}

}

@@ -64,232 +64,1940 @@
 til.
-HashMap;%0A%0Aimport org.sbml.jsbml.Model;%0A%0Apublic class ArraysState extends HierarchicalState%0A%7B%0A%0A%09public ArraysState(HashMap%3CString, Model%3E models, String bioModel,%0A%09%09%09String submodelID)%0A%09%7B%0A%09%09super(models, bioModel, submodelID)
+ArrayList;%0Aimport java.util.HashMap;%0Aimport java.util.HashSet;%0A%0Aimport org.sbml.jsbml.ASTNode;%0Aimport org.sbml.jsbml.Model;%0A%0Apublic class ArraysState extends HierarchicalState%0A%7B%0A%09%0A%09private HashMap%3CString, HashMap%3CInteger, String%3E%3E dimensionToSize;%0A%09private HashMap%3CString, ArrayList%3CDouble%3E%3E arrayedValues;%0A%09private HashSet%3CString%3E arrayedObjects;%0A%09%0A%09public ArraysState(HashMap%3CString, Model%3E models, String bioModel,%0A%09%09%09String submodelID)%0A%09%7B%0A%09%09super(models, bioModel, submodelID);%0A%09%09dimensionToSize = new HashMap%3CString, HashMap%3CInteger, String%3E%3E();%0A%09%09arrayedObjects = new HashSet%3CString%3E();%0A%09%09arrayedValues = new  HashMap%3CString, ArrayList%3CDouble%3E%3E();%0A%09%7D%0A%09%0A%09public void addArrayedObject(String id)%0A%09%7B%0A%09%09arrayedObjects.add(id);%0A%09%7D%0A%09%0A%09public void addValue(String id, int index, double value)%0A%09%7B%0A%09%09ArrayList%3CDouble%3E list = arrayedValues.get(id);%0A%09%09if(list == null)%0A%09%09%7B%0A%09%09%09list = arrayedValues.put(id, new ArrayList%3CDouble%3E());%0A%09%09%7D%0A%09%09%0A%09%09list.add(index, value);%0A%09%7D%0A%09%0A%09public void addDimension(String id, int arrayDim, String size)%0A%09%7B%0A%09%09HashMap%3CInteger, String%3E map = dimensionToSize.get(id);%0A%09%09if(map == null)%0A%09%09%7B%0A%09%09%09map = dimensionToSize.put(id, new HashMap%3CInteger, String%3E());%0A%09%09%7D%0A%09%09%0A%09%09map.put(arrayDim, size);%0A%09%7D%0A%09%0A%09public boolean isArrayed(String id)%0A%09%7B%0A%09%09return arrayedObjects.contains(id);%0A%09%7D%0A%09%0A%09/**%0A%09 * @return the dimensionToSize%0A%09 */%0A%09public HashMap%3CString, HashMap%3CInteger, String%3E%3E getDimensionToSize() %7B%0A%09%09return dimensionToSize;%0A%09%7D%0A%0A%09/**%0A%09 * @return the arrayedObjects%0A%09 */%0A%09public HashSet%3CString%3E getArrayedObjects() %7B%0A%09%09return arrayedObjects;%0A%09%7D%0A%0A%09/**%0A%09 * @param dimensionToSize the dimensionToSize to set%0A%09 */%0A%09public void setDimensionToSize(%0A%09%09%09HashMap%3CString, HashMap%3CInteger, String%3E%3E dimensionToSize) %7B%0A%09%09this.dimensionToSize = dimensionToSize;%0A%09%7D%0A%0A%09/**%0A%09 * @param arrayedObjects the arrayedObjects to set%0A%09 */%0A%09public void setArrayedObjects(HashSet%3CString%3E arrayedObjects) %7B%0A%09%09this.arrayedObjects = arrayedObjects
 ;%0A%09%7D

Update arrays state