// 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("");
}
}