/*
* DataManager
*
*
* Copyright (c) 2003 Kansas State University, Laboratory for the Specification,
* Analysis, and Transformation of Software
*
* This software is licensed under the SAnToS Laboratory Open Academic License. You
* should have received a copy of the license with the distribution. A copy can be
* found at:
* http://www.cis.ksu.edu/santos/license.html
* or you can contact the lab at:
* SAnToS Laboratory
* 234 Nichols Hall
* Manhattan, KS 66506, USA
*/
package edu.ksu.cis.cadena.xmlgen;
import java.util.HashMap;
/**
* This class manages all the component instances located on one board
*
* @version 1.0.3 8.15.2003
* @author sue Li
*/
public class DataManager {
/** maps the name of home to a list of component instances that are created by the home*/
private HashMap homeToComponents;
/** maps the correlator instance name to the instance itself*/
private HashMap correlators;
/** maps the name of instance to the name of its component(interface)*/
private HashMap instanceToBuildingBlock;
/**
* initializes the attributes
*
* @post homeToComponents != null && correlators != null && instanceToBuildingBlock != null
*/
public DataManager() {
homeToComponents = new HashMap();
correlators = new HashMap();
instanceToBuildingBlock = new HashMap();
}
/**
* gets the correlators map
* @return the correlators map
*/
public HashMap correlators() {
return correlators;
}
/**
* gets the homeToComponents map
* @return the homeToComponents map
*/
public HashMap homeToComponents() {
return homeToComponents;
}
/**
* gets the instanceToBuildingBlock map
* @return the instanceToBuildingBlock map
*/
public HashMap instanceToBuildingBlock() {
return instanceToBuildingBlock;
}
}
syntax highlighted by Code2HTML, v. 0.9.1