Examples of AbstractController


Examples of org.jboss.dependency.plugins.AbstractController

      if (related)
      {
         Set<AbstractController> children = current.getControllers();
         for (AbstractController child : children)
         {
            AbstractController found = findMatchingScopedController(child);
            if (found != null)
               return found;
         }
      }
View Full Code Here

Examples of org.jboss.dependency.plugins.AbstractController

*/
public class ParentLookupStrategy extends AbstractLookupStrategy
{
   protected ControllerContext getContextInternal(AbstractController controller, Object name, ControllerState state)
   {
      AbstractController parent = controller.getParentController();
      if (parent != null)
         return parent.getContext(name, state);
      else
         return null;
   }
View Full Code Here

Examples of srsim.domain.AbstractController

      SimulationConfigurationException, InterruptedException {
    double targetBrightness = 6000.0D;
    Simulation simulation = new Simulation(new SystemTimeTimeSource());
    simulation.setResolution(0);
    Room room = new Room();
    AbstractController controller = new LightingController();
    ISensor sensor = new LightSensor();
    IActuator[] lights = new IActuator[10];
    simulation.addRoom(room);
    simulation.getContext().setBrightness(5999.0D);
    room.getLocalContext().setPreference("targetBrightness",
        String.valueOf(targetBrightness));
    controller.attachSensor(sensor);
    for (int i = 0; i < 10; i++) {
      lights[i] = new LightingActuator();
      controller.attachActuator(lights[i]);
      room.addActuator(lights[i]);
    }
    room.addController(controller);
    room.addSensor(sensor);
    double brightness = room.getLocalContext().getBrightness();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.