Changeset 382


Ignore:
Timestamp:
04/22/2010 03:43:45 PM (11 years ago)
Author:
michael.kriegel
Message:

if a fatima is connected the mood it reports regularly is now stored on the BlackBoard? in variable FatimaMood?

Location:
libs/cmion
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libs/cmion/cmionAddOns/src/cmion/addOns/level2/RemoteAirCompetency.java

    r248 r382  
    9090         *  Note: you should use this if this competency is only registered for one type of send messages, if 
    9191         *  it is registered for more, you should use sendMessage(String message, String msgType) to specify 
    92          *  the type of the message. If the no sendMsgTypes are registered, nothing will be sent*/       
     92         *  the type of the message. If no sendMsgTypes are registered, nothing will be sent*/   
    9393        @Override 
    9494        protected void sendMessage(String message)  
  • libs/cmion/cmionMain/src/cmion/level3/fatima/FAtiMAListenerThread.java

    r377 r382  
    111111                        // FAtiMA agent updates us about its current emotional state 
    112112 
    113                         // for now we don't process this 
     113                        // for now all we process here is the mood variable 
     114                         
     115                        // extract mood 
     116                        int start = msg.indexOf("<Mood>"); 
     117                        int end = msg.indexOf("</Mood>"); 
     118                        String mood = msg.substring(start+6, end); 
     119                         
     120                        // and write it to blackboard 
     121                        connector.getArchitecture().getBlackBoard().requestSetProperty("FatimaMood", mood); 
    114122                } 
    115123                else if (type.startsWith("<Relations")) 
Note: See TracChangeset for help on using the changeset viewer.