neuroidnet.periphery
Class ConceptArea

java.lang.Object
  |
  +--neuroidnet.ntr.Area
        |
        +--neuroidnet.periphery.ConceptArea
All Implemented Interfaces:
AreaInt, DumpsData, Expressive, Map, Remote, Runnable, Serializable, Simulation

public class ConceptArea
extends Area
implements Map, DumpsData

Artificial area for holding Concepts. Contains a hashtable for associating a set of conjunction of concepts to new concepts.

Created: Tue Mar 27 00:47:50 2001

Modified: $Date: 2003/03/15 19:09:23 $

Version:
$Revision: 1.15 $ for this file
Author:
Cengiz Gunay
See Also:
Serialized Form

Field Summary
(package private)  Hashtable conceptLookup
          Hashtable pointing from vector (set?) of concepts to concepts contained in here.
 
Fields inherited from class neuroidnet.ntr.Area
axons, deltaT, id, network, neuroids, numberOfNeuroids, time, timeConstantM
 
Constructor Summary
ConceptArea(Network network)
          Creates an Area named ConceptArea with initially no neuroids.
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
(package private)  Set convertKey(Object key)
          Convert Vector to (Tree)Set for avoiding mistake of vector with same content but different order pointing to different buckets!
 String dumpData()
          Deprecated. Use plots instead.
 Set entrySet()
           
 Object get(Object key)
           
 String getProperties()
          Report on concepts in this area one by one.
 boolean isEmpty()
           
 Set keySet()
           
 Object put(Object key, Object value)
           
 void putAll(Map t)
           
 Object remove(Object key)
           
 int size()
           
 Collection values()
           
 
Methods inherited from class neuroidnet.ntr.Area
addArbitrarySynapses, addAxon, addNeuroid, addRandomSynapses, connectToArea, getActivationThreshold, getAxons, getName, getNumberOfNeuroids, getRandomNeuroid, getReplication, getStatus, getThread, init, receiveSpike, run, setActivationThreshold, setAxons, setName, setNumberOfNeuroids, setReplication, setThread, step, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

conceptLookup

Hashtable conceptLookup
Hashtable pointing from vector (set?) of concepts to concepts contained in here.

Constructor Detail

ConceptArea

public ConceptArea(Network network)
Creates an Area named ConceptArea with initially no neuroids.

Parameters:
network - a Network value
Method Detail

getProperties

public String getProperties()
Report on concepts in this area one by one.

Specified by:
getProperties in interface Expressive
Overrides:
getProperties in class Area
Returns:
the description to be printed out as a String value

dumpData

public String dumpData()
Deprecated. Use plots instead.

Dump synaptic activity of concepts contained to output (matlab file?). Called by:

TO DO:

Specified by:
dumpData in interface DumpsData
Returns:
a String value of matlab code
See Also:
Network.finale()

convertKey

Set convertKey(Object key)
Convert Vector to (Tree)Set for avoiding mistake of vector with same content but different order pointing to different buckets!

TODO: Once sender ensures sending TreeSet or HashSet, this translation is redundant!

Parameters:
key - an Object value
Returns:
a TreeSet value
See Also:
see #put

clear

public void clear()
Specified by:
clear in interface Map

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map

get

public Object get(Object key)
Specified by:
get in interface Map

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map

keySet

public Set keySet()
Specified by:
keySet in interface Map

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map

putAll

public void putAll(Map t)
Specified by:
putAll in interface Map

remove

public Object remove(Object key)
Specified by:
remove in interface Map

size

public int size()
Specified by:
size in interface Map

values

public Collection values()
Specified by:
values in interface Map