Changeset 375


Ignore:
Timestamp:
04/20/2010 02:37:35 PM (10 years ago)
Author:
michael.kriegel
Message:

made a few fatima classes serializable, added some debug output to network serialization

Location:
AgentMind/trunk/AgentMind/FAtiMA/src/FAtiMA
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • AgentMind/trunk/AgentMind/FAtiMA/src/FAtiMA/memory/Memory.java

    r278 r375  
    3333 
    3434 
     35import java.io.Serializable; 
     36 
    3537import FAtiMA.memory.episodicMemory.EpisodicMemory; 
    3638import FAtiMA.memory.semanticMemory.SemanticMemory; 
     
    4648 */ 
    4749 
    48 public class Memory { 
     50public class Memory implements Serializable { 
    4951 
    5052        /** 
  • AgentMind/trunk/AgentMind/FAtiMA/src/FAtiMA/memory/episodicMemory/EpisodicMemory.java

    r323 r375  
    11package FAtiMA.memory.episodicMemory; 
    22 
     3import java.io.Serializable; 
    34import java.util.ArrayList; 
    45import java.util.ListIterator; 
     
    1617import FAtiMA.wellFormedNames.Name; 
    1718 
    18 public class EpisodicMemory { 
    19          
     19public class EpisodicMemory implements Serializable { 
     20         
     21        /** 
     22         * for serialization purposes 
     23         */ 
     24        private static final long serialVersionUID = 1L; 
     25 
    2026        public static ArrayList<SearchKey> GenerateSearchKeys(Event e) 
    2127        {        
  • AgentMind/trunk/AgentMind/FAtiMA/src/FAtiMA/memory/semanticMemory/SemanticMemory.java

    r361 r375  
    11package FAtiMA.memory.semanticMemory; 
    22 
     3import java.io.Serializable; 
    34import java.util.ArrayList; 
    45import java.util.ListIterator; 
     
    1213import FAtiMA.wellFormedNames.Symbol; 
    1314 
    14 public class SemanticMemory { 
     15public class SemanticMemory implements Serializable { 
     16         
     17        /** 
     18         * for serialization purposes 
     19         */ 
     20        private static final long serialVersionUID = 1L; 
    1521         
    1622        private KnowledgeBase _kb; 
  • AgentMind/trunk/AgentMind/FAtiMA/src/FAtiMA/motivationalSystem/Motivator.java

    r308 r375  
    55 
    66package FAtiMA.motivationalSystem; 
     7 
     8import java.io.Serializable; 
    79 
    810import FAtiMA.AgentSimulationTime; 
     
    1517 */ 
    1618 
    17 public class Motivator { 
     19public class Motivator implements Serializable { 
    1820 
    1921        private static final long serialVersionUID = 1L; 
  • AgentMind/trunk/AgentMind/FAtiMA/src/FAtiMA/sensorEffector/RemoteAgent.java

    r364 r375  
    796796                        st.nextToken(); 
    797797                        String state = st.nextToken();                   
    798                         _agent.setSerializedState(state);                        
     798                        _agent.setSerializedState(state); 
     799                        this.Send("STATE-SET"); 
    799800                } 
    800801} 
  • AgentMind/trunk/AgentMind/FAtiMA/src/FAtiMA/util/parsers/BinaryStringConverter.java

    r364 r375  
    5555        { 
    5656                int readBytes = input.length; 
     57                System.out.println("encoding binary data to string. " + input.length + " bytes " ); 
    5758                StringBuffer hexData = new StringBuffer(); 
    5859                for (int i=0; i < readBytes; i++)  
     
    6061                        hexData.append(_hexLookupTable[0xff & input[i]]); 
    6162                } 
     63                System.out.println("final string length " + hexData.length() + " characters " ); 
    6264                return hexData.toString(); 
    6365        } 
Note: See TracChangeset for help on using the changeset viewer.