26 #include "sgcommon.hpp"
27 #include "sgtuple.hpp"
30 #include "sgbaseaction.hpp"
96 const vector<bool> & update,
112 const SGPoint & currentDirection,
void intersectRay(const SGPoint &pivot, const SGPoint &direction)
Trims binding continuation segments.
Definition: sgaction_pencilsharpening.cpp:27
void trim(const SGPoint &pivot, const SGPoint &direction)
Trims the trimmedPoints using intersectRaySegment.
Definition: sgaction_pencilsharpening.cpp:34
void intersectRaySegment(const SGPoint &pivot, const SGPoint &direction, int player)
Static method to carry out trimming operations.
Definition: sgaction_pencilsharpening.cpp:69
const vector< SGTuple > & getTrimmedPoints() const
Get method for trimmed points.
Definition: sgaction_pencilsharpening.hpp:70
SGAction_PencilSharpening(const SGEnv &_env, int _state, int _action)
Constructor.
Definition: sgaction_pencilsharpening.hpp:63
Describes a stochastic game.
Definition: sggame.hpp:40
vector< SGTuple > trimmedPoints
Definition: sgaction_pencilsharpening.hpp:49
int state
Definition: sgbaseaction.hpp:42
const SGEnv & env
Definition: sgaction_pencilsharpening.hpp:45
Manages parameters for algorithm behavior.
Definition: sgenv.hpp:35
SGAction_PencilSharpening(const SGEnv &_env)
Constructor.
Definition: sgaction_pencilsharpening.hpp:55
void calculateBindingContinuations(const vector< bool > &updatedThreatTuple, const SGGame &game, const vector< SGTuple > &extremeTuples, const SGTuple &threatTuple, const SGTuple &pivot, const SGPoint ¤tDirection, int oldWest)
Calculates binding continuation values.
Definition: sgaction_pencilsharpening.cpp:187
A vector in .
Definition: sgpoint.hpp:35
void calculateMinIC(const SGGame &game, const vector< bool > &update, const SGTuple &threatTuple)
Calculates the minimum incentive compatible continuation payoff.
Definition: sgaction_pencilsharpening.cpp:134
Enhanced version of SGBaseAction.
Definition: sgaction_pencilsharpening.hpp:43
double distToTrimmed() const
Calculates sup norm distance between comparable points and trimmed points.
Definition: sgaction_pencilsharpening.cpp:51
Describes an action in the game.
Definition: sgbaseaction.hpp:39
Definition: sgtuple.hpp:52
int action
Definition: sgbaseaction.hpp:43
void updateTrim()
Sets points equal to the trimmed points.
Definition: sgaction_pencilsharpening.cpp:41
- src
- hpp
- sgaction_pencilsharpening.hpp