Revision 436:acfaa8618992

View differences:

src/main/java/cz/agents/alite/common/event/typed/AliteEntity.java
16 16
 * @author fido
17 17
 */
18 18
public abstract class AliteEntity implements EventHandler{
19
    
20
    private TypedSimulation typedSimulation;
19 21

  
20 22
    
21 23
    public void init(TypedSimulation eventProcessor){
22 24
        if(getEventTypesToHandle() != null){
23 25
            eventProcessor.addEventHandler(this, getEventTypesToHandle());
24 26
        }
27
        typedSimulation = eventProcessor;
25 28
    }
26 29
    
27 30
    protected List<EventType> getEventTypesToHandle(){
......
30 33

  
31 34
    @Override
32 35
    public EventProcessor getEventProcessor() {
33
        return null;
36
        return typedSimulation;
34 37
    }
35 38

  
36 39
    @Override

Also available in: Unified diff