예제 #1
0
        /// <summary> The current implementation will try to find the memory for the node.
        /// If it doesn't find it, it will create a new one.
        /// </summary>
        public virtual Object getAlphaMemory(Object key)
        {
            Object m = alphaMemories.Get(key);

            if (m == null)
            {
                String mname = "alphamem" + ((BaseNode)key).nodeID;
                m = new AlphaMemoryImpl(mname);
                alphaMemories.Put(key, m);
            }
            return(m);
        }
예제 #2
0
 /// <summary> The current implementation will try to find the memory for the node.
 /// If it doesn't find it, it will create a new one.
 /// </summary>
 public virtual Object getAlphaMemory(Object key)
 {
     Object m = alphaMemories.Get(key);
     if (m == null)
     {
         String mname = "alphamem" + ((BaseNode) key).nodeID;
         m = new AlphaMemoryImpl(mname);
         alphaMemories.Put(key, m);
     }
     return m;
 }