*** empty log message ***
authormhochrei
Mon, 13 Oct 2003 12:33:10 +0200
changeset 980003926ad7484
parent 979 668d02444e46
child 981 9c4d00be3d71
*** empty log message ***
src/java/isac/bridge/CalcTreeHandler.java
src/java/isac/util/CalcTreeHandler.java
     1.1 --- a/src/java/isac/bridge/CalcTreeHandler.java	Mon Oct 13 12:30:21 2003 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,41 +0,0 @@
     1.4 -/****************************************************************** 
     1.5 -* Copyright (c) 2003, Mario Hochreiter, Student of 
     1.6 -* Software Engineering at FH-Hagenberg, Austria. 
     1.7 -* Project member of the isac team at the Institute for 
     1.8 -* Software-Technologie, Graz University of Technology, Austria. 
     1.9 -* 
    1.10 -* Use is subject to license terms.
    1.11 -******************************************************************/
    1.12 -
    1.13 -package isac.bridge;
    1.14 -
    1.15 -import java.util.HashMap;
    1.16 -import java.util.Map;
    1.17 -
    1.18 -/**
    1.19 - * Maps the id's of <code>CalcTree</code> objects to their
    1.20 - * references.
    1.21 - *    
    1.22 - * @author Mario Hochreiter
    1.23 - * @version 1.0
    1.24 - *
    1.25 - */
    1.26 -public class CalcTreeHandler {
    1.27 -  private int calcId;
    1.28 -  private Map idMap;
    1.29 -  
    1.30 -  public CalcTreeHandler() {
    1.31 -    idMap = new HashMap();
    1.32 -  }
    1.33 -  
    1.34 -  /** Store reference and the id of a CalcTree object */
    1.35 -  public void setReferenceForId(CalcTree tree, int id) {
    1.36 -    idMap.put(new Integer(id), tree);
    1.37 -  }
    1.38 -  
    1.39 -  /**@param id The id of the <code>CalcTree</code> object that should be returned 
    1.40 -   * @return <code>CalcTree</code> object with the id */
    1.41 -  public CalcTree getReferenceForId(int id) {
    1.42 -    return (CalcTree)idMap.get(new Integer(id));
    1.43 -  }
    1.44 -}
     2.1 --- a/src/java/isac/util/CalcTreeHandler.java	Mon Oct 13 12:30:21 2003 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,44 +0,0 @@
     2.4 -/****************************************************************** 
     2.5 -* Copyright (c) 2003, Mario Hochreiter, Student of 
     2.6 -* Software Engineering at FH-Hagenberg, Austria. 
     2.7 -* Project member of the isac team at the Institute for 
     2.8 -* Software-Technologie, Graz University of Technology, Austria. 
     2.9 -* 
    2.10 -* Use is subject to license terms.
    2.11 -******************************************************************/
    2.12 -
    2.13 -package isac.util;
    2.14 -
    2.15 -import isac.bridge.CalcTree;
    2.16 -
    2.17 -import java.util.HashMap;
    2.18 -import java.util.Map;
    2.19 -
    2.20 -/**
    2.21 - * Maps the id's of <code>CalcTree</code> objects to their
    2.22 - * references.
    2.23 - *    
    2.24 - * @author Mario Hochreiter
    2.25 - * @version 1.0
    2.26 - *
    2.27 - */
    2.28 -public class CalcTreeHandler {
    2.29 -  private static int calcId;
    2.30 -  private static Map idMap;
    2.31 -  
    2.32 -  public static void initCalcTreeHandler() {
    2.33 -    if (idMap == null)
    2.34 -      idMap = new HashMap();
    2.35 -  }
    2.36 -  
    2.37 -  /** Store reference and the id of a CalcTree object */
    2.38 -  public static void setReferenceForId(CalcTree tree, int id) {
    2.39 -    idMap.put(new Integer(id), tree);
    2.40 -  }
    2.41 -  
    2.42 -  /**@param id The id of the <code>CalcTree</code> object that should be returned 
    2.43 -   * @return <code>CalcTree</code> object with the id */
    2.44 -  public static CalcTree getReferenceForId(int id) {
    2.45 -    return (CalcTree)idMap.get(new Integer(id));
    2.46 -  }
    2.47 -}