code: @Override
      public boolean simpleEvaluation(Agent agent) {
          Node device = agent.getAgentsAppState().getDevicesAppState().getDevice(deviceId);
          if (device != null) {
              PHATDoorSensor psControl = device.getControl(PHATDoorSensor.class);
              if (psControl != null) {
                  DoorData doorData = psControl.getDoorData();
                  if(doorData != null) {
                      return (doorState.equals("ON") && psControl.getDoorData().isOpened()) ||
                              (doorState.equals("OFF") && !psControl.getDoorData().isOpened());
                  }
              }
          }
          return false;
      }
docs: Return true if the agent has the posture indicated in the atribut of the
  class, in another case it returns false;
  
  @param agent
  @return