Changeset 1037


Ignore:
Timestamp:
04/05/2011 05:28:36 PM (9 years ago)
Author:
joao.dias
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • AgentMind/branches/FAtiMA-Modular/FAtiMA/src/FAtiMA/Core/goals/Goal.java

    r953 r1037  
    343343        private Event generateEventDescription(short goalEventType) 
    344344        { 
     345                String target = ""; 
     346                String name; 
    345347                ListIterator<Symbol> li = this._name.GetLiteralList().listIterator(); 
    346                 Event e = new Event("SELF",li.next().toString(),li.next().toString(),EventType.GOAL,goalEventType); 
     348                 
     349                name = li.next().toString(); 
     350                if(li.hasNext()) 
     351                { 
     352                        target = li.next().toString(); 
     353                } 
     354                 
     355                Event e = new Event("SELF",name,target,EventType.GOAL,goalEventType); 
    347356                 
    348357            while(li.hasNext()) 
Note: See TracChangeset for help on using the changeset viewer.