Package trackerModule.core.rulestructure

Examples of trackerModule.core.rulestructure.Rule_Unit


   
    //System.out.println(strMeeting + " to " + destination.getData());
    //System.out.println(arrayWayPoints2.toString());
 
   
    Rule_Unit sRule = null;
   
    String strPrevState = "";
    String strPrev = "";
    int i = 0;
    for( String str : arrayWayPoints1 ){
View Full Code Here


  // rule is updated
  /* (non-Javadoc)
   * @see trackerModule.core.rulestructure.IMessageObject#onUpdated(java.lang.Object)
   */
  public void onUpdated(Object u) {
    Rule_Unit ru = (Rule_Unit)u;
    if( !ru.getName().equalsIgnoreCase("RDBROOT") &&
      !ru.getName().equalsIgnoreCase("SHIP_RULE") &&
      !ru.getParent().getName().equalsIgnoreCase("SHIP_RULE"))
      checkCondition(ru);
    else
    if( !ru.getName().equalsIgnoreCase("RDBROOT") &&
      !ru.getName().equalsIgnoreCase("SHIP_RULE") ){
     
      //count state time
      Unit ship      = TDB.This().get("TDBROOT.MODEL.WORLD.SHIPS."+ru.getName());
      Unit stateTimeCount  = ship.get("StateTimeCount");
      stateTimeCount.setData(stateTimeCount.getDataByInt()+1);
    //  stateTimeCount.print("");
    }
  }  
View Full Code Here

TOP

Related Classes of trackerModule.core.rulestructure.Rule_Unit

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.