Ejemplo n.º 1
0
  @Override
  public Log.KPEvents FindKPEvents() {
    // TODO Auto-generated method stub
    Log log = FindAll();

    for (Object o : log.getCostOrPriceOrRoute()) {
      if (o.getClass() == Log.KPEvents.class) {
        return (Log.KPEvents) o;
      }
    }

    return null;
  }
Ejemplo n.º 2
0
  @Override
  public ArrayList<Discontinue> FindDiscontinue() {
    // TODO Auto-generated method stub
    Log log = FindAll();

    ArrayList<Discontinue> discontinue = new ArrayList<Discontinue>();
    for (Object obj : log.getCostOrPriceOrRoute()) {
      if (obj.getClass() == Discontinue.class) {
        discontinue.add((Discontinue) obj);
      }
    }

    return discontinue;
  }
Ejemplo n.º 3
0
  @Override
  public ArrayList<Timelimit> FindTimelimit() {
    // TODO Auto-generated method stub
    Log log = FindAll();

    ArrayList<Timelimit> timeLimit = new ArrayList<Timelimit>();
    for (Object obj : log.getCostOrPriceOrRoute()) {
      if (obj.getClass() == Timelimit.class) {
        timeLimit.add((Timelimit) obj);
      }
    }

    return timeLimit;
  }
Ejemplo n.º 4
0
  @Override
  public ArrayList<Price> FindPrice() {
    // TODO Auto-generated method stub
    Log log = FindAll();

    ArrayList<Price> price = new ArrayList<Price>();
    for (Object obj : log.getCostOrPriceOrRoute()) {
      if (obj.getClass() == Price.class) {
        price.add((Price) obj);
      }
    }

    return price;
  }
Ejemplo n.º 5
0
  @Override
  public ArrayList<Cost> FindCost() {
    // TODO Auto-generated method stub
    Log log = FindAll();

    ArrayList<Cost> cost = new ArrayList<Cost>();
    for (Object obj : log.getCostOrPriceOrRoute()) {
      if (obj.getClass() == Cost.class) {
        cost.add((Cost) obj);
      }
    }

    return cost;
  }
Ejemplo n.º 6
0
  @Override
  public ArrayList<Mail> FindMail() {
    // TODO Auto-generated method stub
    Log log = FindAll();

    ArrayList<Mail> mail = new ArrayList<Mail>();
    for (Object obj : log.getCostOrPriceOrRoute()) {
      if (obj.getClass() == Mail.class) {
        mail.add((Mail) obj);
      }
    }

    return mail;
  }