smartapi/model/PriceListSpecification.cpp \
smartapi/model/DependentPriceSpecification.cpp \
smartapi/model/TimeDependentPriceSpecification.cpp \
+ smartapi/model/LocationDependentPriceSpecification.cpp \
smartapi/model/PropertyDependentPriceSpecification.cpp \
smartapi/model/DurationDependentPriceSpecification.cpp \
smartapi/model/CalculationMethod.cpp \
smartapi/model/ZoneTravelDurationDependentPriceSpecification.cpp \
smartapi/model/DurationAtDistanceDependentPriceSpecification.cpp \
smartapi/model/DurationAtZoneDependentPriceSpecification.cpp \
- smartapi/model/TimeDependentPriceListSpecification.cpp \
- smartapi/model/ObjectOperationDependentPriceSpecification.cpp \
- smartapi/model/License.cpp
+ smartapi/model/TimeDependentPriceListSpecification.cpp \
+ smartapi/model/ObjectOperationDependentPriceSpecification.cpp \
+ smartapi/model/License.cpp
HEADERS += smartapi/agents/Agent.h \
smartapi/model/DependentPriceSpecification.h \
smartapi/model/TimeDependentPriceSpecification.h \
smartapi/model/PropertyDependentPriceSpecification.h \
+ smartapi/model/LocationDependentPriceSpecification.h \
smartapi/model/DurationDependentPriceSpecification.h \
smartapi/model/Calculable.h \
smartapi/model/CalculationMethod.h \
smartapi/model/ZoneTravelDurationDependentPriceSpecification.h \
smartapi/model/DurationAtDistanceDependentPriceSpecification.h \
smartapi/model/DurationAtZoneDependentPriceSpecification.h \
- smartapi/model/TimeDependentPriceListSpecification.h \
- smartapi/model/ObjectOperationDependentPriceSpecification.h \
- smartapi/model/License.h
+ smartapi/model/TimeDependentPriceListSpecification.h \
+ smartapi/model/ObjectOperationDependentPriceSpecification.h \
+ smartapi/model/License.h
DESTDIR = lib
mEntity->add(PROPERTY__ID, condition);
}
+void SearchAgent::ofIds(QStringList searchStrings)
+{
+ for (int i = 0; i < searchStrings.length(); i++) {
+ if (searchStrings.at(i).length() > 0) {
+ Condition* condition = new Condition();
+ condition->addRegex("(?i)" + searchStrings.at(i));
+ mEntity->add(PROPERTY__ID, condition);
+ }
+ }
+}
+
void SearchAgent::ofDescription(QString searchString)
{
Condition* condition = new Condition();
void ofName(QString searchString, bool exactMatch = false);
void ofType(QString type);
void ofId(QString searchString);
+ void ofIds(QStringList searchStrings);
void ofDescription(QString searchString);
void ofOutputCategory(QString category);
void ofInputCategory(QString category);
#include "smartapi/model/ZoneTravelDurationDependentPriceSpecification.h"
#include "smartapi/model/DurationAtDistanceDependentPriceSpecification.h"
#include "smartapi/model/DurationAtZoneDependentPriceSpecification.h"
+#include "smartapi/model/ObjectOperationDependentPriceSpecification.h"
#include "smartapi/model/TemporalContext.h"
#include "smartapi/model/TimeSeries.h"
if (type == RESOURCE__ZONETRAVELDURATIONDEPENDENTPRICESPECIFICATION) return new ZoneTravelDurationDependentPriceSpecification();
if (type == RESOURCE__DURATIONATDISTANCEDEPENDENTPRICESPECIFICATION) return new DurationAtDistanceDependentPriceSpecification();
if (type == RESOURCE__DURATIONATZONEDEPENDENTPRICESPECIFICATION) return new DurationAtZoneDependentPriceSpecification();
+ if (type == RESOURCE__OBJECTOPERATIONDEPENDENTPRICESPECIFICATION) return new ObjectOperationDependentPriceSpecification();
// qWarning() << "Classmapper could not find an object of type" << type;
return NULL;
if (type == RESOURCE__ZONETRAVELDURATIONDEPENDENTPRICESPECIFICATION) return new ZoneTravelDurationDependentPriceSpecification((ZoneTravelDurationDependentPriceSpecification*)o);
if (type == RESOURCE__DURATIONATDISTANCEDEPENDENTPRICESPECIFICATION) return new DurationAtDistanceDependentPriceSpecification((DurationAtDistanceDependentPriceSpecification*)o);
if (type == RESOURCE__DURATIONATZONEDEPENDENTPRICESPECIFICATION) return new DurationAtZoneDependentPriceSpecification((DurationAtZoneDependentPriceSpecification*)o);
+ if (type == RESOURCE__OBJECTOPERATIONDEPENDENTPRICESPECIFICATION) return new ObjectOperationDependentPriceSpecification((ObjectOperationDependentPriceSpecification*)o);
- qWarning() << "Classmapper could not find the requested type of object.";
+ qWarning() << "Classmapper could not find the requested type of object:" << type;
return NULL;
}
#define PROPERTY__PAYMENTTERM "http://smart-api.io/ontology/1.0/smartapi#paymentTerm"
#define PROPERTY__PERCENTAGE "http://smart-api.io/ontology/1.0/smartapi#percentage"
#define PROPERTY__PERCENTAGEDISCOUNT "http://smart-api.io/ontology/1.0/smartapi#percentageDiscount"
+#define PROPERTY__PERCENTAGEMARGIN "http://smart-api.io/ontology/1.0/smartapi#percentageMargin"
#define PROPERTY__PERCENTAGEMARKUP "http://smart-api.io/ontology/1.0/smartapi#percentageMarkup"
#define PROPERTY__PERSON "http://smart-api.io/ontology/1.0/smartapi#person"
#define PROPERTY__PHOTO "http://www.w3.org/2006/vcard/ns#photo"
#define RESOURCE__DIOPTER "http://data.nasa.gov/qudt/owl/unit#Diopter"
#define RESOURCE__DIRECTDEBIT "http://purl.org/goodrelations/v1#DirectDebit"
#define RESOURCE__DIRECTION "http://smart-api.io/ontology/1.0/smartapi#Direction"
+#define RESOURCE__DISCOUNT "http://smart-api.io/ontology/1.0/smartapi#Discount"
#define RESOURCE__DISCOVER "http://purl.org/goodrelations/v1#Discover"
#define RESOURCE__DISPOSE "http://purl.org/goodrelations/v1#Dispose"
#define RESOURCE__DISTANCEDEPENDENTPRICESPECIFICATION "http://smart-api.io/ontology/1.0/smartapi#DistanceDependentPriceSpecification"
void setCoordinates(Coordinates* c) { add(PROPERTY__LOCATION, c); mCoordinates = c; }
void setCoordinates(double lat, double lon) { setCoordinates(new Coordinates(lat, lon)); }
- bool isTimeDependent() { return false; }
-
private:
Coordinates* mCoordinates;
};
#include "smartapi/common/RESOURCE.h"
DurationAtDistanceDependentPriceSpecification::DurationAtDistanceDependentPriceSpecification(QString identifierUri) :
- DependentPriceSpecification(identifierUri)
+ LocationDependentPriceSpecification(identifierUri)
{
setType(RESOURCE__DURATIONATDISTANCEDEPENDENTPRICESPECIFICATION);
INIT_PROPERTY(mCoordinates);
}
DurationAtDistanceDependentPriceSpecification::DurationAtDistanceDependentPriceSpecification(DurationAtDistanceDependentPriceSpecification* o) :
- DependentPriceSpecification(o)
+ LocationDependentPriceSpecification(o)
{
SET_PROPERTY_REFERENCE(PROPERTY__LOCATION, mCoordinates, Coordinates)
setType(RESOURCE__DURATIONATDISTANCEDEPENDENTPRICESPECIFICATION);
#ifndef DURATIONATDISTANCEDEPENDENTPRICESPECIFICATION_H
#define DURATIONATDISTANCEDEPENDENTPRICESPECIFICATION_H
-#include "smartapi/model/DependentPriceSpecification.h"
+#include "smartapi/model/LocationDependentPriceSpecification.h"
#include "smartapi/common/PROPERTY.h"
#include "smartapi/model/Coordinates.h"
-class DurationAtDistanceDependentPriceSpecification : public DependentPriceSpecification
+class DurationAtDistanceDependentPriceSpecification : public LocationDependentPriceSpecification
{
public:
void setCoordinates(Coordinates* c) { add(PROPERTY__LOCATION, c); mCoordinates = c; }
void setCoordinates(double lat, double lon) { setCoordinates(new Coordinates(lat, lon)); }
- bool isTimeDependent() { return true; }
-
private:
Coordinates* mCoordinates;};
#include "smartapi/common/RESOURCE.h"
DurationAtZoneDependentPriceSpecification::DurationAtZoneDependentPriceSpecification(QString identifierUri) :
- DependentPriceSpecification(identifierUri)
+ LocationDependentPriceSpecification(identifierUri)
{
setType(RESOURCE__DURATIONATZONEDEPENDENTPRICESPECIFICATION);
}
}
DurationAtZoneDependentPriceSpecification::DurationAtZoneDependentPriceSpecification(DurationAtZoneDependentPriceSpecification* o) :
- DependentPriceSpecification(o)
+ LocationDependentPriceSpecification(o)
{
}
#ifndef DURATIONATZONEDEPENDENTPRICESPECIFICATION_H
#define DURATIONATZONEDEPENDENTPRICESPECIFICATION_H
-#include "smartapi/model/DependentPriceSpecification.h"
+#include "smartapi/model/LocationDependentPriceSpecification.h"
-class DurationAtZoneDependentPriceSpecification : public DependentPriceSpecification
+class DurationAtZoneDependentPriceSpecification : public LocationDependentPriceSpecification
{
public:
DurationAtZoneDependentPriceSpecification(QString identifierUri = QString());
Resource* serialize(Model* model);
void parse(Statement* statement);
- bool isTimeDependent() { return false; }
-
};
#endif // DURATIONATZONEDEPENDENTPRICESPECIFICATION_H
--- /dev/null
+#include "LocationDependentPriceSpecification.h"
+
+LocationDependentPriceSpecification::LocationDependentPriceSpecification(QString identifierUri) :
+ DependentPriceSpecification(identifierUri)
+{
+}
+
+LocationDependentPriceSpecification::LocationDependentPriceSpecification(DependentPriceSpecification* o) :
+ DependentPriceSpecification(o)
+{
+}
+
+LocationDependentPriceSpecification::~LocationDependentPriceSpecification()
+{}
--- /dev/null
+#ifndef LOCATIONDEPENDENTPRICESPECIFICATION_H
+#define LOCATIONDEPENDENTPRICESPECIFICATION_H
+
+#include "smartapi/model/DependentPriceSpecification.h"
+
+class LocationDependentPriceSpecification : public DependentPriceSpecification
+{
+
+public:
+ LocationDependentPriceSpecification(QString identifierUri = QString());
+ LocationDependentPriceSpecification(DependentPriceSpecification* o);
+ ~LocationDependentPriceSpecification();
+
+ bool isTimeDependent() { return false; }
+
+private:
+
+};
+
+#endif // LOCATIONDEPENDENTPRICESPECIFICATION_H
INIT_PROPERTY(mVatPercentage)
INIT_PROPERTY(mFixedMarkup)
INIT_PROPERTY(mPercentageMarkup)
+ INIT_PROPERTY(mPercentageMargin)
INIT_PROPERTY(mQuantity)
INIT_PROPERTY(mUnit)
INIT_PROPERTY(mSecondaryQuantity)
INIT_PROPERTY(mVatPercentage)
INIT_PROPERTY(mFixedMarkup)
INIT_PROPERTY(mPercentageMarkup)
+ INIT_PROPERTY(mPercentageMargin)
INIT_PROPERTY(mQuantity)
INIT_PROPERTY(mUnit)
INIT_PROPERTY(mSecondaryQuantity)
SET_PROPERTY_REFERENCE(PROPERTY__VATPERCENTAGE,mVatPercentage,Variant);
SET_PROPERTY_REFERENCE(PROPERTY__FIXEDMARKUP,mFixedMarkup,Variant);
SET_PROPERTY_REFERENCE(PROPERTY__PERCENTAGEMARKUP,mPercentageMarkup,Variant);
+ SET_PROPERTY_REFERENCE(PROPERTY__PERCENTAGEMARGIN,mPercentageMargin,Variant);
SET_PROPERTY_REFERENCE(PROPERTY__QUANTITYKIND,mQuantity,Variant);
SET_PROPERTY_REFERENCE(PROPERTY__UNIT,mUnit,Variant);
SET_PROPERTY_REFERENCE(PROPERTY__SECONDARYQUANTITYKIND,mSecondaryQuantity,Variant);
PARSE_PROPERTY(PROPERTY__VATPERCENTAGE, setVatPercentage, Variant)
PARSE_PROPERTY(PROPERTY__FIXEDMARKUP, setFixedMarkup, Variant)
PARSE_PROPERTY(PROPERTY__PERCENTAGEMARKUP, setPercentageMarkup, Variant)
+ PARSE_PROPERTY(PROPERTY__PERCENTAGEMARGIN, setPercentageMargin, Variant)
PARSE_PROPERTY(PROPERTY__QUANTITYKIND, setQuantity, Variant)
PARSE_PROPERTY(PROPERTY__UNIT, setUnit, Variant)
PARSE_PROPERTY(PROPERTY__SECONDARYQUANTITYKIND, setSecondaryQuantity, Variant)
void setPercentageMarkup(double d) { setPercentageMarkup(new Variant(d)); }
double getPercentageMarkup() { PROPERTYVAL(mPercentageMarkup, asDouble, 0); }
+ bool hasPercentageMargin() { return mPercentageMargin != NULL; }
+ void setPercentageMargin(Variant* v) { set(PROPERTY__PERCENTAGEMARGIN, v); mPercentageMargin = v; }
+ void setPercentageMargin(double d) { setPercentageMargin(new Variant(d)); }
+ double getPercentageMargin() { PROPERTYVAL(mPercentageMargin, asDouble, 0); }
+
bool hasQuantity() { return mQuantity != NULL; }
QString getQuantity() { PROPERTYVAL(mQuantity, asString, QString()); }
void setQuantity(Variant* quantity) { set(PROPERTY__QUANTITYKIND, quantity); mQuantity = quantity; }
Variant* mVatPercentage;
Variant* mFixedMarkup;
Variant* mPercentageMarkup;
+ Variant* mPercentageMargin;
};
#endif // _PRICESPECIFICATION_H_
#include <QtDebug>
TravelDistanceDependentPriceSpecification::TravelDistanceDependentPriceSpecification(QString identifierUri) :
- DependentPriceSpecification(identifierUri)
+ LocationDependentPriceSpecification(identifierUri)
{
setType(RESOURCE__TRAVELDISTANCEDEPENDENTPRICESPECIFICATION);
INIT_PROPERTY(mCalculationMethod)
}
TravelDistanceDependentPriceSpecification::TravelDistanceDependentPriceSpecification(TravelDistanceDependentPriceSpecification* o) :
- DependentPriceSpecification(o)
+ LocationDependentPriceSpecification(o)
{
SET_PROPERTY_REFERENCE(PROPERTY__CALCULATIONMETHOD, mCalculationMethod, CalculationMethod)
setType(RESOURCE__TRAVELDISTANCEDEPENDENTPRICESPECIFICATION);
#ifndef TRAVELDISTANCEDEPENDENTPRICESPECIFICATION_H
#define TRAVELDISTANCEDEPENDENTPRICESPECIFICATION_H
-#include "smartapi/model/DependentPriceSpecification.h"
+#include "smartapi/model/LocationDependentPriceSpecification.h"
#include "smartapi/model/CalculationMethod.h"
#include "smartapi/common/RESOURCE.h"
-class TravelDistanceDependentPriceSpecification : public DependentPriceSpecification
+class TravelDistanceDependentPriceSpecification : public LocationDependentPriceSpecification
{
public:
TravelDistanceDependentPriceSpecification(QString identifierUri = QString());
double calculatePrice(double distance);
- bool isTimeDependent() { return false; }
-
private:
CalculationMethod* mCalculationMethod;
};
#include "smartapi/common/RESOURCE.h"
TravelDistanceDurationDependentPriceSpecification::TravelDistanceDurationDependentPriceSpecification(QString identifierUri) :
- DependentPriceSpecification(identifierUri)
+ LocationDependentPriceSpecification(identifierUri)
{
setType(RESOURCE__TRAVELDISTANCEDURATIONDEPENDENTPRICESPECIFICATION);
}
TravelDistanceDurationDependentPriceSpecification::TravelDistanceDurationDependentPriceSpecification(QString unit, QString secondaryUnit, QString secondaryQuantity, QDateTime validFrom, QDateTime validThrough) :
- TravelDistanceDurationDependentPriceSpecification()
+ LocationDependentPriceSpecification()
{
setQuantity(RESOURCE__CURRENCY);
setUnit(unit);
}
TravelDistanceDurationDependentPriceSpecification::TravelDistanceDurationDependentPriceSpecification(TravelDistanceDurationDependentPriceSpecification* o) :
- DependentPriceSpecification(o)
+ LocationDependentPriceSpecification(o)
{
}
#ifndef TRAVELDISTANCEDURATIONDEPENDENTPRICESPECIFICATION_H
#define TRAVELDISTANCEDURATIONDEPENDENTPRICESPECIFICATION_H
-#include "smartapi/model/DependentPriceSpecification.h"
+#include "smartapi/model/LocationDependentPriceSpecification.h"
-class TravelDistanceDurationDependentPriceSpecification : public DependentPriceSpecification
+class TravelDistanceDurationDependentPriceSpecification : public LocationDependentPriceSpecification
{
public:
TravelDistanceDurationDependentPriceSpecification(QString identifierUri = QString());
Resource* serialize(Model* model);
void parse(Statement* statement);
- bool isTimeDependent() { return true; }
-
};
#endif // TRAVELDISTANCEDURATIONDEPENDENTPRICESPECIFICATION_H
#include "smartapi/common/RESOURCE.h"
ZoneDependentPriceSpecification::ZoneDependentPriceSpecification(QString identifierUri) :
- DependentPriceSpecification(identifierUri)
+ LocationDependentPriceSpecification(identifierUri)
{
setType(RESOURCE__ZONEDEPENDENTPRICESPECIFICATION);
}
}
ZoneDependentPriceSpecification::ZoneDependentPriceSpecification(ZoneDependentPriceSpecification* o) :
- DependentPriceSpecification(o)
+ LocationDependentPriceSpecification(o)
{
}
#ifndef ZONEDEPENDENTPRICESPECIFICATION_H
#define ZONEDEPENDENTPRICESPECIFICATION_H
-#include "smartapi/model/DependentPriceSpecification.h"
+#include "smartapi/model/LocationDependentPriceSpecification.h"
-class ZoneDependentPriceSpecification : public DependentPriceSpecification
+class ZoneDependentPriceSpecification : public LocationDependentPriceSpecification
{
public:
ZoneDependentPriceSpecification(QString identifierUri = QString());
Resource* serialize(Model* model);
void parse(Statement* statement);
- bool isTimeDependent() { return false; }
-
};
#endif // ZONEDEPENDENTPRICESPECIFICATION_H
ZonePopulationDependentPriceSpecification::ZonePopulationDependentPriceSpecification(QString identifierUri) :
DependentPriceSpecification(identifierUri)
{
- setType(RESOURCE__ZONETRAVELDEPENDENTPRICESPECIFICATION);
+ setType(RESOURCE__ZONEPOPULATIONDEPENDENTPRICESPECIFICATION);
+ INIT_PROPERTY(mCalculationMethod)
+ INIT_PROPERTY(mZone)
}
ZonePopulationDependentPriceSpecification::ZonePopulationDependentPriceSpecification(QString unit, QString secondaryUnit, QString secondaryQuantity, QDateTime validFrom, QDateTime validThrough) :
ZonePopulationDependentPriceSpecification::ZonePopulationDependentPriceSpecification(ZonePopulationDependentPriceSpecification* o) :
DependentPriceSpecification(o)
{
+ SET_PROPERTY_REFERENCE(PROPERTY__CALCULATIONMETHOD, mCalculationMethod, CalculationMethod)
+ SET_PROPERTY_REFERENCE(PROPERTY__ZONE, mZone, Zone)
+ setType(RESOURCE__ZONEPOPULATIONDEPENDENTPRICESPECIFICATION);
}
ZonePopulationDependentPriceSpecification::~ZonePopulationDependentPriceSpecification()
void ZonePopulationDependentPriceSpecification::parse(Statement* statement)
{
INIT_PARSE(statement)
+ PARSE_PROPERTY(PROPERTY__CALCULATIONMETHOD, setCalculationMethod, CalculationMethod)
+ PARSE_PROPERTY(PROPERTY__ZONE, setZone, Zone)
FINISH_PARSE(DependentPriceSpecification)
}
+
+void ZonePopulationDependentPriceSpecification::setCalculationMethod(CalculationMethod* cm)
+{
+ addType(RESOURCE__LINEARPRICESPECIFICATION);
+ add(PROPERTY__CALCULATIONMETHOD, cm);
+ mCalculationMethod = cm;
+}
+
+void ZonePopulationDependentPriceSpecification::addCondition(Condition* condition)
+{
+ addType(RESOURCE__STEPPRICESPECIFICATION);
+ DependentPriceSpecification::addCondition(condition);
+}
+
#define ZONEPOPULATIONDEPENDENTPRICESPECIFICATION_H
#include "smartapi/model/DependentPriceSpecification.h"
+#include "smartapi/model/CalculationMethod.h"
+#include "smartapi/model/Zone.h"
+#include "smartapi/common/RESOURCE.h"
+
class ZonePopulationDependentPriceSpecification : public DependentPriceSpecification
{
Resource* serialize(Model* model);
void parse(Statement* statement);
+ bool isStepPriceSpecification() { return hasType(RESOURCE__STEPPRICESPECIFICATION); }
+ bool isLinearPriceSpecification() { return hasType(RESOURCE__LINEARPRICESPECIFICATION); }
+
+ bool hasCalculationMethod() { return (mCalculationMethod != NULL); }
+ CalculationMethod* getCalculationMethod() { return mCalculationMethod; }
+ void setCalculationMethod(CalculationMethod* cm);
+ void addCondition(Condition* condition);
+
+ bool hasZone() { return (mZone != NULL); }
+ Zone* getZone() { return mZone; }
+ void setZone(Zone* z) { add(PROPERTY__ZONE, z); mZone = z; }
+
bool isTimeDependent() { return false; }
+private:
+ CalculationMethod* mCalculationMethod;
+ Zone* mZone;
+
};
#endif // ZONEPOPULATIONDEPENDENTPRICESPECIFICATION_H
#include "smartapi/common/RESOURCE.h"
ZoneTravelDependentPriceSpecification::ZoneTravelDependentPriceSpecification(QString identifierUri) :
- DependentPriceSpecification(identifierUri)
+ LocationDependentPriceSpecification(identifierUri)
{
setType(RESOURCE__ZONETRAVELDEPENDENTPRICESPECIFICATION);
}
}
ZoneTravelDependentPriceSpecification::ZoneTravelDependentPriceSpecification(ZoneTravelDependentPriceSpecification* o) :
- DependentPriceSpecification(o)
+ LocationDependentPriceSpecification(o)
{
}
#ifndef ZONETRAVELDEPENDENTPRICESPECIFICATION_H
#define ZONETRAVELDEPENDENTPRICESPECIFICATION_H
-#include "smartapi/model/DependentPriceSpecification.h"
+#include "smartapi/model/LocationDependentPriceSpecification.h"
-class ZoneTravelDependentPriceSpecification : public DependentPriceSpecification
+class ZoneTravelDependentPriceSpecification : public LocationDependentPriceSpecification
{
public:
ZoneTravelDependentPriceSpecification(QString identifierUri = QString());
virtual void clearReferences(QSet<GraphItem*>* trash);
Resource* serialize(Model* model);
void parse(Statement* statement);
-
- bool isTimeDependent() { return false; }
-
};
#endif // ZONETRAVELDEPENDENTPRICESPECIFICATION_H
#include "smartapi/common/RESOURCE.h"
ZoneTravelDurationDependentPriceSpecification::ZoneTravelDurationDependentPriceSpecification(QString identifierUri) :
- DependentPriceSpecification(identifierUri)
+ LocationDependentPriceSpecification(identifierUri)
{
setType(RESOURCE__ZONETRAVELDURATIONDEPENDENTPRICESPECIFICATION);
}
}
ZoneTravelDurationDependentPriceSpecification::ZoneTravelDurationDependentPriceSpecification(ZoneTravelDurationDependentPriceSpecification* o) :
- DependentPriceSpecification(o)
+ LocationDependentPriceSpecification(o)
{
}
#define ZONETRAVELDURATIONDEPENDENTPRICESPECIFICATION_H
-#include "smartapi/model/DependentPriceSpecification.h"
+#include "smartapi/model/LocationDependentPriceSpecification.h"
-class ZoneTravelDurationDependentPriceSpecification : public DependentPriceSpecification
+class ZoneTravelDurationDependentPriceSpecification : public LocationDependentPriceSpecification
{
public:
ZoneTravelDurationDependentPriceSpecification(QString identifierUri = QString());
virtual void clearReferences(QSet<GraphItem*>* trash);
Resource* serialize(Model* model);
void parse(Statement* statement);
-
- bool isTimeDependent() { return true; }
-
};
#endif // ZONETRAVELDURATIONDEPENDENTPRICESPECIFICATION_H