block.h revision 6af8609f35d86944763dc80141002c548984b2ed
/**
* \brief A block is a group of variables that must be moved together to improve
* the goal function without violating already active constraints.
* The variables in a block are spanned by a tree of active constraints.
*
* Authors:
* Tim Dwyer <tgdwyer@gmail.com>
*
* Copyright (C) 2005 Authors
*
* Released under GNU LGPL. Read the file 'COPYING' for more information.
*/
#ifndef SEEN_REMOVEOVERLAP_BLOCK_H
#define SEEN_REMOVEOVERLAP_BLOCK_H
#include <vector>
#include <iostream>
{
double posn;
double weight;
double wposn;
~Block(void);
Constraint* findMinLM();
void deleteMinInConstraint();
void deleteMinOutConstraint();
double desiredWeightedPosition();
void setUpInConstraints();
void setUpOutConstraints();
double cost();
bool deleted;
long timeStamp;
void addVariable(Variable *v);
};
#endif // SEEN_REMOVEOVERLAP_BLOCK_H