Package com.beoui.geocell.model

Examples of com.beoui.geocell.model.Point


    PersistenceManager pm = PMF.get().getPersistenceManager();

    List<Participant> results = null;

    Point center = new Point(l.getLatitude(), l.getLongitude());

    List<Object> params = new ArrayList<Object>();
    params.add(subject);

    String filter = has ? "hasSubjects == param" : "needSubjects == param";
View Full Code Here


    Preconditions.checkNotNull(l);
    long checkTime = System.currentTimeMillis() - LOCAL_STREAM_PERIOD;

    PersistenceManager pm = PMF.get().getPersistenceManager();
    List<Participant> results = null;
    Point center = new Point(l.getLatitude(), l.getLongitude());
    List<Object> params = new ArrayList<Object>();
    params.add(checkTime);

    String filter = "lastModifiedTime >= updateTimeP";
    GeocellQuery query = new GeocellQuery(filter, "long updateTimeP",
View Full Code Here

    Preconditions.checkNotNull(l);

    PersistenceManager pm = PMF.get().getPersistenceManager();
    List<Participant> results = new ArrayList<Participant>();

    Point center = new Point(l.getLatitude(), l.getLongitude());
    List<Object> params = new ArrayList<Object>();
    params.add(subjects);

    String filter = has ? "hasSubjects" : "needSubjects";
    filter += ".contains(subjectsP)";
View Full Code Here

      result.applyScore(getScore(p, result));
    }
  }

  private double getScore(Participant p, SearchResult result) {
    return 1000 / GeocellUtils.distance(p.getLocation(), new Point(result
        .getLatitude(), result.getLongitude()));
  }
View Full Code Here

  public SearchResponse filterList(double latitude, double longitude,
      String strlocation, int radius, List<String> hasSubs,
      List<String> needSubs) {
    SearchResponse response = new SearchResponse();
    Participant pi;
    Point pt = new Point(latitude, longitude);
    try {
      Set<String> hasSubjects = new HashSet<String>();
      Set<String> needSubjects = new HashSet<String>();

      for (String s : hasSubs) {
View Full Code Here

    this.lastModifiedTime = System.currentTimeMillis();
    this.message = message;
  }

  public Point getLocation() {
    return new Point(latitude, longitude);
  }
View Full Code Here

  public void setLocation(Location location) {
    this.latitude = location.getLatitude();
    this.longitude = location.getLongitude();
    this.setLocationString(location.getLocationString());

    this.geocells = MyGeocellManager.generateGeoCell(new Point(location
        .getLatitude(), location.getLongitude()));
    this.lastModifiedTime = System.currentTimeMillis();
  }
View Full Code Here

    PersistenceManager pm = PMF.get().getPersistenceManager();

    List<Opportunity> results = null;

    Point center = new Point(l.getLatitude(), l.getLongitude());

    List<Object> params = new ArrayList<Object>();
    params.add(subjects);

    String filter = onlyActive ? "active == true && " : "";
View Full Code Here

    PersistenceManager pm = PMF.get().getPersistenceManager();

    List<Opportunity> results = null;
    long checkTime = System.currentTimeMillis() - CHECK_TIME;

    Point center = new Point(l.getLatitude(), l.getLongitude());

    List<Object> params = new ArrayList<Object>();
    params.add(checkTime);

    String filter = active ? "active == true " : "";
View Full Code Here

    this.dateOfBirth = dateOfBirth;
    return this;
  }

  public Point getLocation() {
    return new Point(latitude, longitude);
  }
View Full Code Here

TOP

Related Classes of com.beoui.geocell.model.Point

Copyright © 2018 www.massapicom. 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.