Examples of Track


Examples of com.jme3.animation.Track

                            for (Constraint constraint : constraints) {
                                constraint.apply(frame);
                                vTrack.setTransform(frame, spatial.getLocalTransform());
                            }
                        }
                        Track newTrack = vTrack.getAsSpatialTrack();
                        if (newTrack != null) {
                            animation.removeTrack(track);
                            animation.addTrack(newTrack);
                        }
                        applyStaticConstraints = false;
View Full Code Here

Examples of com.pugh.sockso.music.Track

        d.setProperties( p );
       
        final Artist artist = TestUtils.getArtist();
        final Album album = TestUtils.getAlbum(artist);
        final Genre genre = TestUtils.getGenre();
        final Track track = new Track.Builder()
                .artist( artist )
                .album( album )
                .genre( genre )
                .id(3)
                .name("track")
                .number(4)
                .path("")
                .dateAdded(new Date())
                .build();

        final String path = d.getTrackZipPath( track );
       
        assertTrue( path.contains(artist.getName()) );
        assertTrue( path.contains(album.getName()) );
        assertTrue( path.contains(track.getName()) );
        assertTrue( path.contains("04") ); // tens should be padded
       
    }
View Full Code Here

Examples of com.tapestry5book.entities.Track

            idToTrack.put(t.getId(), t);
        }
    }

    public Track getById(long id) {
        Track result = idToTrack.get(id);

        if (result != null)
            return result;

        throw new IllegalArgumentException(String.format(
View Full Code Here

Examples of com.tulskiy.musique.playlist.Track

            }
        });
    }

    private void formatTitle() {
        Track track = app.getPlayer().getTrack();
        String value = null;
        if (track != null)
            value = (String) windowFormat.eval(track);

        String title;
View Full Code Here

Examples of com.vercer.engine.persist.festival.Album.Track

  public void testLists()
  {
    Album album = new Album();
    album.name = "Greatest Hits";
    album.tracks = new Track[1];
    album.tracks[0] = new Track();
    album.tracks[0].title = "Friday I'm in Love";

    datastore.store(album);

    datastore.disassociateAll();
View Full Code Here

Examples of de.anomic.server.serverAccessTracker.Track

            prop.put("page_bflist", entCount);
        } else if (page == 1) {
            String host = (post == null) ? "" : post.get("host", "");
            int entCount = 0;
            Collection<Track> access;
            Track entry;
            if (host.length() > 0) {
                access = sb.accessTrack(host);
                if (access != null) {
                    try {
                        final Iterator<Track> ii = listclone(access).iterator();
                        while (ii.hasNext()) {
                            entry = ii.next();
                            prop.putHTML("page_list_" + entCount + "_host", host);
                            prop.put("page_list_" + entCount + "_date", SimpleFormatter.format(new Date(entry.getTime())));
                            prop.putHTML("page_list_" + entCount + "_path", entry.getPath());
                            entCount++;
                        }
                    } catch (final ConcurrentModificationException e) {} // we don't want to synchronize this
                }
            } else {
                try {
                    final Iterator<String> i = sb.accessHosts();
                    while ((entCount < maxCount) && (i.hasNext())) {
                        host = i.next();
                        access = sb.accessTrack(host);
                        final Iterator<Track> ii = listclone(access).iterator();
                        while (ii.hasNext()) {
                                entry = ii.next();
                                prop.putHTML("page_list_" + entCount + "_host", host);
                                prop.put("page_list_" + entCount + "_date", SimpleFormatter.format(new Date(entry.getTime())));
                                prop.putHTML("page_list_" + entCount + "_path", entry.getPath());
                                entCount++;
                        }
                    }
                } catch (final ConcurrentModificationException e) {} // we dont want to synchronize this
            }
            prop.put("page_list", entCount);
            prop.put("page_num", entCount);
        } else if ((page == 2) || (page == 4)) {
            final Iterator<QueryParams> ai = (page == 2) ? AccessTracker.get(AccessTracker.Location.local) : AccessTracker.get(AccessTracker.Location.remote);
            QueryParams query;
            long qcountSum = 0;
            long rcountSum = 0;
            long tcountSum = 0;
            long rcount = 0;
            long utimeSum = 0;
            long stimeSum = 0;
            long rtimeSum = 0;
            long utimeSum1 = 0;
            long stimeSum1 = 0;
            long rtimeSum1 = 0;
            int m = 0;
           
            while (ai.hasNext()) {
                try {
                    query = ai.next();
                } catch (ConcurrentModificationException e) {
                    break;
                }
                // put values in template
                prop.put("page_list_" + m + "_dark", ((dark) ? 1 : 0) );
                dark =! dark;
                prop.putHTML("page_list_" + m + "_host", query.host);
                prop.put("page_list_" + m + "_date", SimpleFormatter.format(new Date(query.time.longValue())));
                prop.put("page_list_" + m + "_timestamp", query.time.longValue());
                if (page == 2) {
                    // local search
                    prop.putNum("page_list_" + m + "_offset", query.offset);
                    prop.putHTML("page_list_" + m + "_querystring", query.queryString);
                } else {
                    // remote search
                    prop.putHTML("page_list_" + m + "_peername", (query.remotepeer == null) ? "<unknown>" : query.remotepeer.getName());
                    prop.put("page_list_" + m + "_queryhashes", QueryParams.anonymizedQueryHashes(query.queryHashes));
                }
                prop.putNum("page_list_" + m + "_querycount", query.itemsPerPage);
                prop.putNum("page_list_" + m + "_transmitcount", query.transmitcount);
                prop.putNum("page_list_" + m + "_resultcount", query.resultcount);
                prop.putNum("page_list_" + m + "_urltime", query.urlretrievaltime);
                prop.putNum("page_list_" + m + "_snippettime", query.snippetcomputationtime);
                prop.putNum("page_list_" + m + "_resulttime", query.searchtime);
                prop.putHTML("page_list_" + m + "_userAgent", query.userAgent);
                qcountSum += query.itemsPerPage;
                rcountSum += query.resultcount;
                tcountSum += query.transmitcount;
                utimeSum += query.urlretrievaltime;
                stimeSum += query.snippetcomputationtime;
                rtimeSum += query.searchtime;
                if (query.resultcount > 0){
                  rcount++;
                    utimeSum1 += query.urlretrievaltime;
                    stimeSum1 += query.snippetcomputationtime;
                    rtimeSum1 += query.searchtime;
                }
                m++;
            }
            prop.put("page_list", m);
            prop.put("page_num", m);
            prop.put("page_resultcount", rcount);
           
            // Put -1 instead of NaN as result for empty search list and return the safe HTML blank char for table output
            if (m == 0) {
                m = -1;
                // return empty values to not break the table view
                prop.put("page_list", 1);
                prop.put("page_list_0_dark", 1 );
                prop.put("page_list_0_host", "");
                prop.put("page_list_0_date", "");
                prop.put("page_list_0_timestamp", "");
                if (page == 2) {
                    // local search
                    prop.putNum("page_list_0_offset", "");
                    prop.put("page_list_0_querystring", "");
                } else {
                    // remote search
                    prop.put("page_list_0_peername", "");
                    prop.put("page_list_0_queryhashes", "");
                }
                prop.putNum("page_list_0_querycount", "");
                prop.putNum("page_list_0_transmitcount", "");
                prop.putNum("page_list_0_resultcount", "");
                prop.putNum("page_list_0_urltime", "");
                prop.putNum("page_list_0_snippettime", "");
                prop.putNum("page_list_0_resulttime", "");
                prop.put("page_list_0_userAgent", "");
            }
            if (rcount == 0) rcount = -1;
            prop.putNum("page_querycount_avg", (double) qcountSum / m);
            prop.putNum("page_resultcount_avg", (double) rcountSum / m);
            prop.putNum("page_urltime_avg", (double) utimeSum / m);
            prop.putNum("page_snippettime_avg", (double) stimeSum / m);
            prop.putNum("page_resulttime_avg", (double) rtimeSum / m);
            prop.putNum("page_transmitcount_avg", (double) tcountSum / rcount);
            prop.putNum("page_resultcount_avg1", (double) rcountSum / rcount);
            prop.putNum("page_urltime_avg1", (double) utimeSum1 / rcount);
            prop.putNum("page_snippettime_avg1", (double) stimeSum1 / rcount);
            prop.putNum("page_resulttime_avg1", (double) rtimeSum1 / rcount);
            prop.putNum("page_total", (page == 2) ? AccessTracker.size(AccessTracker.Location.local) : AccessTracker.size(AccessTracker.Location.remote));
        } else if ((page == 3) || (page == 5)) {
            final Iterator<Entry<String, TreeSet<Long>>> i = (page == 3) ? sb.localSearchTracker.entrySet().iterator() : sb.remoteSearchTracker.entrySet().iterator();
            String host;
            TreeSet<Long> handles;
            int m = 0;
            int qphSum = 0;
            Map.Entry<String, TreeSet<Long>> entry;
            try {
            while ((m < maxCount) && (i.hasNext())) {
                entry = i.next();
                host = entry.getKey();
                handles = entry.getValue();
               
                int dateCount = 0;
                final Iterator<Long> ii = handles.iterator();
                while (ii.hasNext()) {
                    final Long timestamp = ii.next();
View Full Code Here

Examples of de.linwave.music.Track

    Band stones = new Band("Rolling Stones");
    stones.getAritsts().add(new Artist("Mick Jagger"));

    //
    Album album = new Album("Seargent Peppers lonely hearts club", 1969, theBeatles);
    album.getTracks().add(new Track("Yellow submarine", 120, rock, paul));
    album.getTracks().add(new Track("Abbey road", 96, classic, john));
    album.getTracks().add(new Track("Hello and good bye", 132, rock, ringo));
    album.getTracks().add(new Track("Sag zum Abschied leise Servus", 112, rock, george));
    // theBeatles.getAlbums().add(album);

    Album letItBe = new Album("Let it be", 1970, john);
    letItBe.getTracks().add(new Track("Two of us", 243, rock));
    letItBe.getTracks().add(new Track("Dig it", 145, rock));
    letItBe.getTracks().add(new Track("Let it be", 121, rock));
    letItBe.getTracks().add(new Track("Goodby yellow brick road", 121, rock));

    Album sunrise = new Album("Yellow Submarine", 1970, john);
    sunrise.getTracks().add(new Track("Two of us", 243, rock));
    sunrise.getTracks().add(new Track("Dig it", 145, rock));
    sunrise.getTracks().add(new Track("Let it be", 121, rock));
    sunrise.getTracks().add(new Track("Goodby yellow brick road", 121, rock));
    john.setPlayed(2);

    Album clock = new Album("Clockwork Orange", 1970, george);
    clock.getTracks().add(new Track("Track1", 243, rock));
    clock.getTracks().add(new Track("Track2", 145, rock));
    clock.getTracks().add(new Track("Track3", 121, rock));
    clock.getTracks().add(new Track("Track4", 121, rock));

    try {
      db.store(theBeatles);
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

Examples of de.micromata.opengis.kml.v_2_2_0.gx.Track

     * this.getGeometry().add(track); </code>
     *
     *
     */
    public Track createAndAddTrack() {
        Track newValue = new Track();
        this.getGeometry().add(newValue);
        return newValue;
    }
View Full Code Here

Examples of de.sciss.eisenkraut.timeline.Track

  // sync: caller must sync on timeline + grp + tc
  private void updateSelection()
  {
    Rectangle  r;
    Track    t;
    int      x, y;

    vpSelections.clear();
    vpSelectionColors.clear();
    if( !timelineSel.isEmpty() ) {
View Full Code Here

Examples of de.umass.lastfm.Track

            System.out.println("Ricerca info: " + info);
            Collection<Track> search = Track.search(info,
                    "33d9ef520018d87db5dff9ef74cc4904");

            Iterator<Track> it = search.iterator();
            Track t;
            if (it.hasNext())
                t = it.next();
            else
                t = null;

            if (t == null)
                return null;
            else {
                SongDTO song = new SongDTO();
                song.setTitle(t.getName());
                song.setArtist(t.getArtist());
                if (t.getAlbum() != null)
                    song.setAlbum(t.getAlbum());
                song.setAlbumCover(t.getImageURL(ImageSize.EXTRALARGE));
                return song;
            }
        } catch (Exception e) {
        }
        return null;
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.