_staticCost = direct ? _estimate.getCost(KBOperation.IS_DIRECT_TYPE) : _estimate.getCost(KBOperation.IS_TYPE); _branchCount = 1; _staticCost = direct ? _estimate.getCost(KBOperation.GET_DIRECT_INSTANCES) : _estimate.getCost(KBOperation.GET_INSTANCES); _branchCount = isConstant(clazz) ? _estimate.size(clazz) : _estimate.avgInstancesPerClass(direct); _staticCost = _estimate.getCost(KBOperation.GET_TYPES); _branchCount = isConstant(instance) ? _estimate.classesPerInstance(instance, direct) : _estimate.avgClassesPerInstance(direct); _staticCost = _estimate.getClassCount() * (direct ? _estimate.getCost(KBOperation.GET_DIRECT_INSTANCES) : _estimate.getCost(KBOperation.GET_INSTANCES)); _branchCount = _estimate.getClassCount() * _estimate.avgInstancesPerClass(direct); _staticCost = _estimate.getCost(KBOperation.HAS_PROPERTY_VALUE); _branchCount = 1; _staticCost = _estimate.getCost(KBOperation.GET_PROPERTY_VALUE); _branchCount = isConstant(predicate) ? _estimate.avg(predicate) : _estimate.avgSubjectsPerProperty(); _staticCost = _estimate.getCost(KBOperation.GET_PROPERTY_VALUE); if (isConstant(predicate)) _staticCost = _estimate.getCost(KBOperation.GET_PROPERTY_VALUE) + (isConstant(predicate) ? _estimate.avg(predicate) : _estimate.avgSubjectsPerProperty()) * _estimate.getCost(KBOperation.GET_PROPERTY_VALUE); _branchCount = isConstant(predicate) ? _estimate.size(predicate) : _estimate.avgPairsPerProperty(); _staticCost = _estimate.getPropertyCount() * _estimate.getCost(KBOperation.GET_PROPERTY_VALUE); _branchCount = _estimate.getPropertyCount() * _estimate.avgSubjectsPerProperty();
_staticCost = direct ? _estimate.getCost(KBOperation.IS_DIRECT_TYPE) : _estimate.getCost(KBOperation.IS_TYPE); _branchCount = 1; _staticCost = direct ? _estimate.getCost(KBOperation.GET_DIRECT_INSTANCES) : _estimate.getCost(KBOperation.GET_INSTANCES); _branchCount = isConstant(clazz) ? _estimate.size(clazz) : _estimate.avgInstancesPerClass(direct); _staticCost = _estimate.getCost(KBOperation.GET_TYPES); _branchCount = isConstant(instance) ? _estimate.classesPerInstance(instance, direct) : _estimate.avgClassesPerInstance(direct); _staticCost = _estimate.getClassCount() * (direct ? _estimate.getCost(KBOperation.GET_DIRECT_INSTANCES) : _estimate.getCost(KBOperation.GET_INSTANCES)); _branchCount = _estimate.getClassCount() * _estimate.avgInstancesPerClass(direct); _staticCost = _estimate.getCost(KBOperation.HAS_PROPERTY_VALUE); _branchCount = 1; _staticCost = _estimate.getCost(KBOperation.GET_PROPERTY_VALUE); _branchCount = isConstant(predicate) ? _estimate.avg(predicate) : _estimate.avgSubjectsPerProperty(); _staticCost = _estimate.getCost(KBOperation.GET_PROPERTY_VALUE); if (isConstant(predicate)) _staticCost = _estimate.getCost(KBOperation.GET_PROPERTY_VALUE) + (isConstant(predicate) ? _estimate.avg(predicate) : _estimate.avgSubjectsPerProperty()) * _estimate.getCost(KBOperation.GET_PROPERTY_VALUE); _branchCount = isConstant(predicate) ? _estimate.size(predicate) : _estimate.avgPairsPerProperty(); _staticCost = _estimate.getPropertyCount() * _estimate.getCost(KBOperation.GET_PROPERTY_VALUE); _branchCount = _estimate.getPropertyCount() * _estimate.avgSubjectsPerProperty();
_staticCost = direct ? _estimate.getCost(KBOperation.IS_DIRECT_TYPE) : _estimate.getCost(KBOperation.IS_TYPE); _branchCount = 1; _staticCost = direct ? _estimate.getCost(KBOperation.GET_DIRECT_INSTANCES) : _estimate.getCost(KBOperation.GET_INSTANCES); _branchCount = isConstant(clazz) ? _estimate.size(clazz) : _estimate.avgInstancesPerClass(direct); _staticCost = _estimate.getCost(KBOperation.GET_TYPES); _branchCount = isConstant(instance) ? _estimate.classesPerInstance(instance, direct) : _estimate.avgClassesPerInstance(direct); _staticCost = _estimate.getClassCount() * (direct ? _estimate.getCost(KBOperation.GET_DIRECT_INSTANCES) : _estimate.getCost(KBOperation.GET_INSTANCES)); _branchCount = _estimate.getClassCount() * _estimate.avgInstancesPerClass(direct); _staticCost = _estimate.getCost(KBOperation.HAS_PROPERTY_VALUE); _branchCount = 1; _staticCost = _estimate.getCost(KBOperation.GET_PROPERTY_VALUE); _branchCount = isConstant(predicate) ? _estimate.avg(predicate) : _estimate.avgSubjectsPerProperty(); _staticCost = _estimate.getCost(KBOperation.GET_PROPERTY_VALUE); if (isConstant(predicate)) _staticCost = _estimate.getCost(KBOperation.GET_PROPERTY_VALUE) + (isConstant(predicate) ? _estimate.avg(predicate) : _estimate.avgSubjectsPerProperty()) * _estimate.getCost(KBOperation.GET_PROPERTY_VALUE); _branchCount = isConstant(predicate) ? _estimate.size(predicate) : _estimate.avgPairsPerProperty(); _staticCost = _estimate.getPropertyCount() * _estimate.getCost(KBOperation.GET_PROPERTY_VALUE); _branchCount = _estimate.getPropertyCount() * _estimate.avgSubjectsPerProperty();