PrimaryDecomAction.cpp
Go to the documentation of this file.
/* Frobby: Software for monomial ideal computations.
Copyright (C) 2007 Bjarke Hammersholt Roune (www.broune.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/.
*/
#include "stdinc.h"
#include "PrimaryDecomAction.h"
#include "SliceFacade.h"
#include "SliceParams.h"
#include "DataType.h"
PrimaryDecomAction::PrimaryDecomAction():
Action
(staticGetName(),
"Compute the primary decomposition of monomial ideals.",
"This feature is experimental which means that it isn't correctly\n"
"implemented yet. I.e. it doesn't work yet - don't use it other than\n"
"because you are developing Frobby or curious to see how this\n"
"functionality is coming along.",
false),
_io(DataType::getMonomialIdealType(), DataType::getMonomialIdealListType()) {
}
void PrimaryDecomAction::obtainParameters(vector<Parameter*>& parameters) {
_io.obtainParameters(parameters);
_sliceParams.obtainParameters(parameters);
Action::obtainParameters(parameters);
}
void PrimaryDecomAction::perform() {
SliceParams params(_params);
validateSplit(params, true, false);
SliceFacade facade(params, DataType::getMonomialIdealListType());
facade.computePrimaryDecomposition();
}
const char* PrimaryDecomAction::staticGetName() {
return "primdecom";
}
DataType.h
PrimaryDecomAction.h
SliceFacade.h
validateSplit
void validateSplit(const SliceParams &params, bool allowLabel, bool allowDegree)
Definition SliceParams.cpp:61
SliceParams.h
Action::_params
CliParams _params
Definition Action.h:59
Action::Action
Action(const char *name, const char *shortDescription, const char *description, bool acceptsNonParameter)
Definition Action.cpp:46
Action::obtainParameters
virtual void obtainParameters(vector< Parameter * > &parameters)
Definition Action.cpp:133
DataType
The intention of this class is to describe the different kinds of mathematical structures that Frobby...
Definition DataType.h:29
DataType::getMonomialIdealListType
static const DataType & getMonomialIdealListType()
Returns the one and only instance for monomial ideal lists.
Definition DataType.cpp:54
PrimaryDecomAction::staticGetName
static const char * staticGetName()
Definition PrimaryDecomAction.cpp:50
PrimaryDecomAction::_sliceParams
SliceParameters _sliceParams
Definition PrimaryDecomAction.h:36
PrimaryDecomAction::_io
IOParameters _io
Definition PrimaryDecomAction.h:37
PrimaryDecomAction::perform
virtual void perform()
Definition PrimaryDecomAction.cpp:43
PrimaryDecomAction::obtainParameters
virtual void obtainParameters(vector< Parameter * > &parameters)
Definition PrimaryDecomAction.cpp:37
PrimaryDecomAction::PrimaryDecomAction
PrimaryDecomAction()
Definition PrimaryDecomAction.cpp:24
SliceFacade
A facade for operations on monomial ideals using the Slice Algorithm.
Definition SliceFacade.h:44
SliceFacade::computePrimaryDecomposition
void computePrimaryDecomposition()
Compute the unique "nicest" primary decomposition of the ideal.
Definition SliceFacade.cpp:150
SliceParams
Definition SliceParams.h:25
stdinc.h
This header file includes common definitions and is included as the first line of code in every imple...