Examples of Calls


Examples of org.netbeans.server.uihandler.statistics.Actions.Calls

       
        Object attr = pg.getAttribute("globalActions");
        assertNotNull("Value provided", attr);
        assertEquals(true, attr instanceof Calls);
       
        Calls calls = (Calls)attr;
        Map<String,Integer> all = calls.getTopTen(10, null, null, Actions.Invocations.ALL);

        String dumpAll = all.toString();
        if (dumpAll.indexOf("Delegate") >= 0) {
            fail("Some Delegate:\n" + dumpAll);
        }
View Full Code Here

Examples of uk.org.siri.siri.AffectedVehicleJourneyStructure.Calls

        if (vj.getDirectionRef() != null)
          affects.setDirectionId(vj.getDirectionRef().getValue());

        List<VehicleJourneyRefStructure> tripRefs = vj.getVehicleJourneyRef();
        Calls stopRefs = vj.getCalls();

        boolean hasTripRefs = !CollectionsLibrary.isEmpty(tripRefs);
        boolean hasStopRefs = stopRefs != null
            && !CollectionsLibrary.isEmpty(stopRefs.getCall());

        if (!(hasTripRefs || hasStopRefs)) {
          if (affects.hasRouteId())
            serviceAlert.addAffects(affects);
        } else if (hasTripRefs && hasStopRefs) {
          for (VehicleJourneyRefStructure vjRef : vj.getVehicleJourneyRef()) {
            AgencyAndId tripId = AgencyAndIdLibrary.convertFromString(vjRef.getValue());
            affects.setTripId(ServiceAlertLibrary.id(tripId));
            for (AffectedCallStructure call : stopRefs.getCall()) {
              AgencyAndId stopId = AgencyAndIdLibrary.convertFromString(call.getStopPointRef().getValue());
              affects.setStopId(ServiceAlertLibrary.id(stopId));
              serviceAlert.addAffects(affects);
            }
          }
        } else if (hasTripRefs) {
          for (VehicleJourneyRefStructure vjRef : vj.getVehicleJourneyRef()) {
            AgencyAndId tripId = AgencyAndIdLibrary.convertFromString(vjRef.getValue());
            affects.setTripId(ServiceAlertLibrary.id(tripId));
            serviceAlert.addAffects(affects);
          }
        } else {
          for (AffectedCallStructure call : stopRefs.getCall()) {
            AgencyAndId stopId = AgencyAndIdLibrary.convertFromString(call.getStopPointRef().getValue());
            affects.setStopId(ServiceAlertLibrary.id(stopId));
            serviceAlert.addAffects(affects);
          }
        }
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.