View Javadoc

1   package cz.cuni.amis.pogamut.base.component.controller;
2   
3   import cz.cuni.amis.pogamut.base.component.bus.event.IStartedEvent;
4   import cz.cuni.amis.pogamut.base.component.bus.event.IStartingEvent;
5   
6   /**
7    * Defines the way the {@link ComponentController} behaves - when it calls {@link IComponentControlHelper}.init()
8    * and {@link IComponentControlHelper}.start() methods.
9    * @author Jimmy
10   */
11  public enum ComponentDependencyType {
12  
13  	/**
14  	 * Starts component whenever all dependents broadcasted at least {@link IStartingEvent} (or {@link IStartedEvent}).
15  	 */
16  	STARTS_WITH,
17  	
18  	/**
19  	 * Starts component whenever all dependents broadcasted {@link IStartedEvent}
20  	 */
21  	STARTS_AFTER;
22  	
23  }