2017-12-20 22:05:04 +01:00
|
|
|
//
|
|
|
|
// Created by mpapa on 05.12.2017.
|
|
|
|
//
|
|
|
|
|
2017-12-20 22:10:08 +01:00
|
|
|
#ifndef SOURCE_DESTRUCTIONPOWER_H
|
|
|
|
#define SOURCE_DESTRUCTIONPOWER_H
|
2017-12-20 22:05:04 +01:00
|
|
|
|
|
|
|
#define DESTRUCTION_INIT 0.5
|
|
|
|
#define DESTRUCTION_COUNT 1
|
|
|
|
|
|
|
|
#include "../AbstraktionLayer_Base.h"
|
|
|
|
#include <vector>
|
|
|
|
#include <iostream>
|
|
|
|
#include <bitset>
|
|
|
|
#include <random>
|
|
|
|
|
2017-12-20 22:10:08 +01:00
|
|
|
class DestructionPower : public AbstraktionLayer_Base <DestructionPower_Properties>
|
2017-12-20 22:05:04 +01:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
void PreProcessing(const vector<Part*>* partArray);//override
|
|
|
|
bool EvaluateQuality (const coor constraintCoordinate, qualityVector& qVector);
|
|
|
|
bool SetConstraintOnPosition(const coor constraintCoordinate, const AbstractionLayer_1_Properties constraint);
|
|
|
|
bool RemoveConstraintOnPosition(const coor constraintCoordinate);
|
|
|
|
|
|
|
|
void DestructionOfSurrounding(const coor constraintCoordinate);
|
|
|
|
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
|
2017-12-20 22:10:08 +01:00
|
|
|
#endif //SOURCE_DESTRUCTIONPOWER_H
|