Examples of Event


Examples of de.lmu.ifi.dbs.elki.datasource.bundle.BundleStreamSource.Event

   */
  public static MultipleObjectsBundle fromStream(BundleStreamSource source) {
    MultipleObjectsBundle bundle = new MultipleObjectsBundle();
    boolean stop = false;
    while(!stop) {
      Event ev = source.nextEvent();
      switch(ev) {
      case END_OF_STREAM:
        stop = true;
        break;
      case META_CHANGED:
View Full Code Here

Examples of de.maramuse.soundcomp.process.Event

  return 0.3+note16/16.0/tempo;
  }

  private Event getSnare(double left, double right) {
  // create the snare drum from a sampled file
  Event snare=new Event();
  mul m3=new mul(), m4=new mul();
  InputFile ifsn=new InputFile("javasrc/de/maramuse/soundcomp/test/testfiles/sd.wav");
  snare.setAbstractName("snare");
  snare.setInstanceName("snare"+nameCount++);
  snare.setDuration(0.025);
  snare.setLivetime(1.25);
  snare.addElement(ifsn);
  try{
    m3.setSource(IN_IMAG.i, ifsn, OUT.i);
    m3.setSource(IN.i, ConstStream.c(left), OUT.i);
    m4.setSource(IN_IMAG.i, ifsn, OUT_IMAG.i);
    m4.setSource(IN.i, ConstStream.c(right), OUT.i);
  }catch(Exception ex){
    ex.printStackTrace();
  }
  snare.addElement(m3);
  snare.addElement(m4);
  snare.addMixerConnection(drums_L, m3, OUT.i);
  snare.addMixerConnection(drums_R, m4, OUT.i);
  return snare;
  }
View Full Code Here

Examples of de.maramuse.soundcomp.process.TimerMap.Event

   */
  private EventMonoFlop(){
 
  }
  public Event getOnEvent() {
  return new Event() {
    @Override
    public void notifyElement(ProcessElement processElement) {
    double d=0.0;
    synchronized(EventMonoFlop.this){
      if(lastSwitchOffEvent!=null)
View Full Code Here

Examples of de.novanic.eventservice.client.event.Event

    private class ServerMessageGeneratorTimerTask extends TimerTask
    {
        public void run() {
            final String theEventMessage = "GWTEventService is greeting everybody with \"Hello\" at " + getCurrentTimeFormatted() + " (and every five seconds again)! :-)";
            //create the event
            Event theEvent = new ServerGeneratedMessageEvent(theEventMessage);
            //add the event, so clients can receive it
            addEvent(ServerGeneratedMessageEvent.SERVER_MESSAGE_DOMAIN, theEvent);
        }
View Full Code Here

Examples of de.pdf_scrutinizer.API.Event

                App app = new App(scrutinizer, doc);

                ScriptableObject.putProperty(scope, "app", Context.javaToJS(app, scope));
                ScriptableObject.putProperty(scope, "Collab", Context.javaToJS(new Collab(scrutinizer), scope));
                ScriptableObject.putProperty(scope, "util", Context.javaToJS(new Util(scrutinizer), scope));
                ScriptableObject.putProperty(scope, "event", Context.javaToJS(new Event(scrutinizer, doc), scope));
                ScriptableObject.putProperty(scope, "media", Context.javaToJS(new Media(scrutinizer), scope));
                ScriptableObject.putProperty(scope, "XMLData", Context.javaToJS(new XMLData(scrutinizer), scope));
                ScriptableObject.putProperty(scope, "display", Context.javaToJS(new display(), scope));
                ScriptableObject.putProperty(scope, "console", Context.javaToJS(doc.console, scope));
                ScriptableObject.putProperty(scope, "info", Context.javaToJS(doc.info, scope));
View Full Code Here

Examples of de.timefinder.data.Event

            Collection<? extends Resource> resources, boolean throwExc) {
        int counter = 0;
        for (Resource res : resources) {
            List<Event> events = new ArrayList(res.getEvents());
            for (int i = 0; i < events.size(); i++) {
                Event ev1 = events.get(i);
                if (sol.isEventAssigned(ev1))
                    for (int j = i + 1; j < events.size(); j++) {
                        Event ev2 = events.get(j);
                        if (sol.isEventAssigned(ev2) && ev1.overlapps(ev2))
                            if (throwExc)
                                throw new IllegalStateException("conflicting events in resource " +
                                        res + " ev1:" + ev1 + " " + ev1.getLocation() + " ev2:" + ev2 + " " + ev2.getLocation());
                            else
                                counter++;
                    }
            }
        }
View Full Code Here

Examples of de.xanders.data.system.dao.Event

    /**
     * @see EventService#getEventById(java.lang.Long)
     */
    protected EventVO handleGetEventById(java.lang.Long eventId)
        throws java.lang.Exception {
      Event event = this.getEventDao().load(eventId);
      return this.getEventDao().toEventVO(event);
    }
View Full Code Here

Examples of desmoj.core.simulator.Event

  @SuppressWarnings({ "unchecked", "rawtypes" })
  protected void onServiceFinisched(EIn who) {
    for (SplitterOutput<EIn, ?> outputConfig : outputConfigurations) {
      for (int i = 0; i < outputConfig.getNumberOfOutputPartsPerOriginalEntity(); i++) {
        try {
          Event eventToSchedule;

          eventToSchedule = outputConfig.getSuccessorEvent().clone();
          eventToSchedule.schedule(outputConfig.createOutputEntity(who),
              outputConfig.getTransportTime());
        } catch (CloneNotSupportedException ex) {
          throw new RuntimeException(ex);
        }
View Full Code Here

Examples of domain.Event

   * and then add the new event to the database
   */
  @Override
  protected Response internalExecute(HttpServletRequest request, Session databaseSession) {
    Response response = null;
    Event event = null;
    HttpSession httpSession = request.getSession();
   
    User userObject = (User) httpSession.getAttribute("currentUser");
    if( null == userObject ) {
      return new Response(ResponseStatus.FAIL, "Problem identifying user");
    }

    Date fromDate = DateOperator.stringToDate(from);
    Date toDate = DateOperator.stringToDate(to);
   
    if( (null == fromDate) || (null == toDate) ) {
      return new Response(ResponseStatus.FAIL, "Dates parsing problem" );
    }
    if( !DateOperator.date1IsBeforeDate2(fromDate, toDate) ) {
      return new Response(ResponseStatus.FAIL, "Start date need to be before end date");
    }
   
    else {
      try {
        EventType eventTypeObject = (EventType) databaseSession.createCriteria(EventType.class).add(Restrictions.eq("id", this.eventType)).uniqueResult();
        if(null == eventTypeObject) {
          return new Response(ResponseStatus.FAIL, "Not valid event type");
        }
       
        EventId eventIdObject = new EventId()
        eventIdObject.setFrom(fromDate);
        eventIdObject.setTo(toDate);
        eventIdObject.setOwner(userObject);
        eventIdObject.setType(eventTypeObject);
       
        PermissionType permisssionTypeObject = (PermissionType) databaseSession.createCriteria(PermissionType.class).add(Restrictions.eq("id", this.permissionType)).uniqueResult();
        if(null == permisssionTypeObject) {
          return new Response(ResponseStatus.FAIL, "Not valid permisssion type");
        }
       
        RepetitionType repetitionTypeObject = (RepetitionType) databaseSession.createCriteria(RepetitionType.class).add(Restrictions.eq("id", this.repetitionType)).uniqueResult();
        if(null == repetitionTypeObject) {
          return new Response(ResponseStatus.FAIL, "Not valid repetition type");
        }
        if( !DateOperator.isRepetitionPossible(fromDate, toDate, repetitionTypeObject) ) {
          return new Response(ResponseStatus.FAIL, "Repetition is not possible. Make sure there is a sense in the repetition type you choose");
        }
       
        this.description = XssHandler.escape(this.description);
       
        event = new Event();
        event.setDescription(this.description);
        event.setPermission(permisssionTypeObject);
        event.setRepetition(repetitionTypeObject);
        event.setId(eventIdObject);
       
        Transaction transaction = databaseSession.beginTransaction();
        try {
          databaseSession.save(event);
          transaction.commit();
View Full Code Here

Examples of easysm.stores.Event

    Set<ParameterInfo> params = SetFactory.createSet(ParameterInfo.class);
    EventInfo eInfo = new EventInfo(eIffy, params);
    main.doAddEvent(eInfo);
    List<Event> eSet = main.events().eventList();
    assertTrue(eSet.size() == 2);
    assertTrue(eSet.contains(new Event(eInfo)));

  }
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.