Changeset 968


Ignore:
Timestamp:
02/13/2011 06:29:00 PM (10 years ago)
Author:
joao.dias
Message:
 
Location:
AgentMind/branches/FAtiMA-Modular/FAtiMA/src/FAtiMA/Core
Files:
1 added
2 deleted
1 edited

Legend:

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

    r961 r968  
    4040import FAtiMA.Core.exceptions.ActionsParsingException; 
    4141import FAtiMA.Core.exceptions.GoalLibParsingException; 
     42import FAtiMA.Core.exceptions.UndefinedComponentException; 
    4243import FAtiMA.Core.exceptions.UnknownGoalException; 
    4344import FAtiMA.Core.goals.Goal; 
     
    344345        public IComponent getComponent(String name) 
    345346        { 
    346                 return this._generalComponents.get(name); 
     347                if(!this._generalComponents.containsKey(name)) 
     348                { 
     349                        throw new UndefinedComponentException(name); 
     350                } 
     351                else return this._generalComponents.get(name); 
    347352        } 
    348353 
Note: See TracChangeset for help on using the changeset viewer.