#include #include #include #include #include using namespace RAT; using namespace RAT::Optimisers; void MetaOptimiser::SetComponent( OptimisedComponent* component ) { fComponent = component; fMethod = dynamic_cast< Methods::OptimisedMethod* >( component ); // Downcast fSeededMethod = dynamic_cast< Methods::SeededMethod* >( component ); // Downcast if( fMethod == NULL || fSeededMethod == NULL ) Log::Die( "MetaOptimiser::SetComponent: Component MUST be both a OptimisedMethods and a SeededMethod." ); }