Changeset 444


Ignore:
Timestamp:
09/23/2010 04:32:45 PM (10 years ago)
Author:
myl
Message:

Added the GeneralMemory? package which contains GER and the generalisation mechanism. Currently the generalisation is performed on only 6 fields - subject, action, target, desirability, praiseworthiness and time. The coverage (the minimum frequency of occurrence) is set to 3, i.e. only events with the same 6 fields that occurred more than 3 times will be generalised and stored in the generalMemory as GER. Added a tab called GeneralMemory? to the agent Display for visualisation of the generalisation result. Also re-factored the MemoryProcesses? package to RetrievalProcesses?.

Location:
AgentMind/trunk/AgentMind
Files:
8 added
1 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • AgentMind/trunk/AgentMind/AgentLauncher/.classpath

    r240 r444  
    44        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/> 
    55        <classpathentry combineaccessrules="false" kind="src" path="/FAtiMA"/> 
    6         <classpathentry combineaccessrules="false" kind="src" path="/MemoryProcesses"/> 
     6        <classpathentry combineaccessrules="false" kind="src" path="/RetrievalProcesses"/> 
    77        <classpathentry kind="output" path="bin"/> 
    88</classpath> 
  • AgentMind/trunk/AgentMind/AgentLauncher/src/AgentLauncher.java

    r438 r444  
    1515import FAtiMA.util.parsers.ScenarioLoaderHandler; 
    1616 
    17 import MemoryProcesses.CompoundCue; 
    18 import MemoryProcesses.SpreadActivate; 
    19 import MemoryProcesses.Commonalities; 
     17import RetrievalProcesses.Commonalities; 
     18import RetrievalProcesses.CompoundCue; 
     19import RetrievalProcesses.SpreadActivate; 
    2020 
    2121public class AgentLauncher { 
     
    112112                        agent.setCommonalities(new Commonalities()); 
    113113                        System.out.println("Commonalities set "); 
     114                        //agent.setGeneralisation(new Generalisation()); 
     115                        //System.out.println("Generalisation set "); 
    114116                }                
    115117                agent.StartAgent(); 
  • AgentMind/trunk/AgentMind/FAtiMA/src/FAtiMA/Agent.java

    r438 r444  
    108108        protected ISpreadActivate _spreadActivate; 
    109109        protected ICommonalities _commonalities; 
    110          
     110 
    111111        private String _saveDirectory; 
    112112        public static final String MIND_PATH = "data/characters/minds/"; 
  • AgentMind/trunk/AgentMind/FAtiMA/src/FAtiMA/Display/AgentDisplay.java

    r278 r444  
    7070                 
    7171                panel = new NeedsPanel(); 
    72                 _displayPane.addTab("Needs",null,panel,"displays the characters needs"); 
    73                  
     72                _displayPane.addTab("Needs",null,panel,"displays the characters needs");                 
    7473                 
    7574                panel = new SocialRelationsPanel(); 
     
    8786                panel = new ShortTermMemoryPanel(); 
    8887                _displayPane.addTab("Short Term Memory", null, panel, "displays all the records in the character's short term memory"); 
     88                 
     89                panel = new GeneralMemoryPanel(); 
     90                _displayPane.addTab("General Memory", null, panel, "displays all the records in the character's general memory"); 
    8991                 
    9092                panel = new ToMPanel(); 
  • AgentMind/trunk/AgentMind/FAtiMA/src/FAtiMA/Display/TestAction.java

    r278 r444  
    55 
    66import FAtiMA.Agent; 
    7  
    87 
    98public class TestAction implements ActionListener { 
  • AgentMind/trunk/AgentMind/FAtiMA/src/FAtiMA/memory/Memory.java

    r375 r444  
    3636 
    3737import FAtiMA.memory.episodicMemory.EpisodicMemory; 
     38import FAtiMA.memory.generalMemory.GeneralMemory; 
    3839import FAtiMA.memory.semanticMemory.SemanticMemory; 
    3940 
     
    5758        private SemanticMemory _sm; 
    5859        private EpisodicMemory _em; 
     60        private GeneralMemory _gm; 
    5961         
    6062        public Memory() 
     
    6264                _sm = new SemanticMemory(); 
    6365                _em = new EpisodicMemory(); 
     66                _gm = new GeneralMemory(); 
    6467        } 
    6568         
     
    7477        } 
    7578         
    76          
     79        public GeneralMemory getGeneralMemory() 
     80        { 
     81                return _gm; 
     82        } 
    7783         
    7884} 
  • AgentMind/trunk/AgentMind/FAtiMA/src/FAtiMA/sensorEffector/RemoteAgent.java

    r432 r444  
    134134        protected static final String SA_MEMORY = "SA-MEMORY"; 
    135135        protected static final String CC_MEMORY = "CC-MEMORY"; 
     136        protected static final String G_MEMORY = "G-MEMORY"; 
    136137        protected static final String GET_STATE = "GET-STATE"; 
    137138        protected static final String SET_STATE = "SET-STATE"; 
     
    380381                                } 
    381382                                System.out.println("\n\n");*/ 
     383                        } 
     384                        else if(msgType.equals(G_MEMORY)) 
     385                        { 
     386                                _agent.getMemory().getGeneralMemory().generalise(_agent.getMemory().getEpisodicMemory()); 
    382387                        } 
    383388                         
  • AgentMind/trunk/AgentMind/WorldTest/src/UserInterface.java

    r432 r444  
    268268                }); 
    269269         
     270        // Button to perform generalisation 
     271        JButton gButton = new JButton("Generalise");; 
     272        gButton.addActionListener(new ActionListener(){ 
     273                        public void actionPerformed(ActionEvent arg0) { 
     274                                _world.GMemory(); 
     275                        } 
     276                }); 
     277         
    270278        JPanel buttonsPanel = new JPanel(); 
    271279        buttonsPanel.setLayout(new BoxLayout(buttonsPanel,BoxLayout.X_AXIS)); 
     
    274282        buttonsPanel.add(saButton); 
    275283        buttonsPanel.add(ccButton); 
     284        buttonsPanel.add(gButton); 
    276285         
    277286        _frame.getContentPane().add(caseBox); 
  • AgentMind/trunk/AgentMind/WorldTest/src/WorldTest.java

    r323 r444  
    374374                knownInfo = ""; 
    375375        } 
     376         
     377        public void GMemory(){ 
     378                SendPerceptionToAll("G-MEMORY"); 
     379        } 
    376380                 
    377381        public synchronized void removeAgent(RemoteAgent ra){ 
  • AgentMind/trunk/AgentMind/data/characters/minds/LIRECScenarios.xml

    r438 r444  
    7070                           port="46874" displayMode="True" sex="F" actionsFile="LIRECActions"  
    7171                           goalsFile="LIRECGoalLibrary" cultureName="NoCulture"  
    72                            saveDirectory="data/characters/minds/state/" load="True"> 
     72                           saveDirectory="data/characters/minds/state/" load="False"> 
    7373                        <Properties>                             
    7474                                <Property name="time" value="Morning"/> 
Note: See TracChangeset for help on using the changeset viewer.