Examples of Event


Examples of org.omg.uml.behavioralelements.statemachines.Event

     * @param facade the model element facade for which to find the meta class.
     * @return the meta model element
     */
    static Event getMetaClass(EventFacade facade)
    {
        Event event = null;

        if (facade != null)
        {
            String id = facade.getId();
            Collection events = getModel().getStateMachines().getEvent().refAllOfType();
View Full Code Here

Examples of org.open2jam.parsers.Event

        EventList new_list = new EventList();
 
        timing.add(timer, bpm);
       
  //there is always a 1st measure
  Event m = new Event(Event.Channel.MEASURE, measure, 0, 0, Event.Flag.NONE);
  m.setTime(timer);
  new_list.add(m);

        for(Event e : list)
        {
            while(e.getMeasure() > measure)
            {
                timer += (BEATS_PER_MSEC * (frac_measure-measure_pointer)) / my_bpm;
                m = new Event(Event.Channel.MEASURE, measure, 0, 0, Event.Flag.NONE);
                m.setTime(timer);
                new_list.add(m);
                measure++;
                frac_measure = 1;
                measure_pointer = 0;
            }
View Full Code Here

Examples of org.openengsb.core.api.Event

        tester.getApplication().getComponentInstantiationListeners()
            .add(new PaxWicketSpringBeanComponentInjector(tester.getApplication(), context));
        eventService = mock(WorkflowService.class);
       
        List<Event> allAudits = new ArrayList<Event>();
        Event event1 = new Event();
        event1.setName("123");
        event1.setProcessId(1L);
        Event event2 = new Event();
        event2.setName("456");
        event2.setProcessId(2L);
        allAudits.add(event1);
        allAudits.add(event2);

        Mockito.when(auditingDomain.getAllAudits()).thenReturn(allAudits);
        context.putBean("eventService", eventService);
View Full Code Here

Examples of org.openhab.binding.digitalstrom.internal.client.entity.Event

      return this.unsubscribeEvent(this.EVENT_NAME, this.ID);
    }

    private void handleEvent(JSONArray array) {
      if (array.size() > 0) {
        Event event = new JSONEventImpl(array);

        for (EventItem item : event.getEventItems()) {
          if (item.getName() != null
              && item.getName().equals(this.EVENT_NAME)) {
            handleOpenhabEvent(item);
          }
        }
View Full Code Here

Examples of org.openiaml.model.model.Event

  public void setGeneratedRule(GeneratedElement element, String ruleName) throws InferenceException {
    setValue(element, ModelPackage.eINSTANCE.getGeneratedElement_GeneratedRule(), ruleName);
  }

  public Event generatedEventOnAccess(GeneratesElements by, Accessible container) throws InferenceException {
    Event event = (Event) createElement( container, ModelPackage.eINSTANCE.getEvent(), ModelPackage.eINSTANCE.getAccessible_OnAccess() );
    setGeneratedBy(event, by);
    return event;
  }
View Full Code Here

Examples of org.openjena.atlas.event.Event

    }

    @Override
    public void parse()
    {
        EventManager.send(sink, new Event(SysRIOT.startRead, null)) ;
        runParser() ;
        sink.flush() ;
        EventManager.send(sink, new Event(SysRIOT.finishRead, null)) ;
        tokens.close();
    }
View Full Code Here

Examples of org.osforce.connect.entity.calendar.Event

  }
 
  @RequestMapping("/detail-view")
  @Permission({"event-view"})
  public String doDetailView(@RequestParam Long eventId, Model model) {
    Event event = eventService.getEvent(eventId);
    model.addAttribute(AttributeKeys.EVENT_KEY_READABLE, event);
    return "calendar/event-detail";
  }
View Full Code Here

Examples of org.osgi.service.event.Event

      putProp(props, "service.id", event.getReference().getProperty(Constants.SERVICE_ID));
      putProp(props, "service.objectClass", event.getReference().getProperty(Constants.OBJECTCLASS));
      putProp(props, "service.pid", event.getReference().getProperty(Constants.SERVICE_PID));

      try {
        Activator.eventAdmin.postEvent(new Event(topic, props));
      } catch (Exception e) {
        Activator.log.error("EXCEPTION in configurationEvent()", e);
      }
    } else {
      Activator.log.error("Recieved unknown configuration event (type="
View Full Code Here

Examples of org.restlet.ext.sip.Event

        return (sb == null) ? null : sb.toString();
    }

    @Override
    public Event readValue() throws IOException {
        Event result = null;

        skipSpaces();
        if (peek() != -1) {
            EventType eventType = null;
            String str = readSegment();
            if (str != null) {
                eventType = new EventType(str);
                while ((str = readSegment()) != null) {
                    eventType.getEventTemplates().add(str);
                }

                result = new Event();
                result.setType(eventType);
                // Read event parameters.
                if (skipParameterSeparator()) {
                    Parameter param = readParameter();

                    while (param != null) {
                        if ("id".equals(param.getName())) {
                            result.setId(param.getValue());
                        } else {
                            result.getParameters().add(param);
                        }

                        if (skipParameterSeparator()) {
                            param = readParameter();
                        } else {
View Full Code Here

Examples of org.rhq.core.domain.event.Event

            Vector<Hashtable> notifList = null;
            notifList = (Vector<Hashtable>) alertAttribute.refresh();
          for (Hashtable notifHash : notifList) {
              long timestamp = (new Long ((String) notifHash.get(NOTIFICATION_TIMESTAMP_LONG))).longValue();
               
              Event event = new Event(getEventType(),
                ((String)notifHash.get(NOTIFICATION_TYPE)),
                timestamp,
                EventSeverity.WARN,
                ((String)notifHash.get(NOTIFICATION_MESSAGE)));
              EmsOperation clear = emsbean.getOperation(CLEAR_ALERT_OPERATION);
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.