HOG2
Public Member Functions | Protected Attributes | List of all members
spreadExecSearchAlgorithm Class Referenceabstract

#include <SpreadExecSearchAlgorithm.h>

Inheritance diagram for spreadExecSearchAlgorithm:
Inheritance graph
[legend]
Collaboration diagram for spreadExecSearchAlgorithm:
Collaboration graph
[legend]

Public Member Functions

 spreadExecSearchAlgorithm ()
 
virtual const char * GetName ()
 
virtual pathGetPath (GraphAbstraction *aMap, node *from, node *to, reservationProvider *rp=0)
 
virtual void setTargets (GraphAbstraction *_aMap, node *s, node *e, reservationProvider *_rp=0)
 
virtual int getNumThinkSteps ()=0
 how many times do we have to "think" to find the solution, return -1 if unknown More...
 
virtual paththink ()=0
 do next processing for path, returns avaliability of path moves More...
 
- Public Member Functions inherited from SearchAlgorithm
 SearchAlgorithm ()
 
virtual ~SearchAlgorithm ()
 
uint64_t GetNodesExpanded ()
 
uint64_t GetNodesTouched ()
 
virtual void LogFinalStats (StatCollection *)
 

Protected Attributes

nodestart
 
nodeend
 
reservationProviderrp
 
GraphAbstractionaMap
 

Additional Inherited Members

- Public Attributes inherited from SearchAlgorithm
uint32_t nodesExpanded
 
uint32_t nodesTouched
 

Detailed Description

Definition at line 17 of file SpreadExecSearchAlgorithm.h.

Constructor & Destructor Documentation

◆ spreadExecSearchAlgorithm()

spreadExecSearchAlgorithm::spreadExecSearchAlgorithm ( )
inline

Definition at line 19 of file SpreadExecSearchAlgorithm.h.

Member Function Documentation

◆ GetName()

virtual const char* spreadExecSearchAlgorithm::GetName ( )
inlinevirtual

Implements SearchAlgorithm.

Definition at line 20 of file SpreadExecSearchAlgorithm.h.

◆ getNumThinkSteps()

virtual int spreadExecSearchAlgorithm::getNumThinkSteps ( )
pure virtual

how many times do we have to "think" to find the solution, return -1 if unknown

Implemented in spreadPRAStar.

◆ GetPath()

path * spreadExecSearchAlgorithm::GetPath ( GraphAbstraction aMap,
node from,
node to,
reservationProvider rp = 0 
)
virtual

Implements SearchAlgorithm.

Reimplemented in spreadPRAStar.

Definition at line 14 of file SpreadExecSearchAlgorithm.cpp.

References setTargets(), and think().

◆ setTargets()

virtual void spreadExecSearchAlgorithm::setTargets ( GraphAbstraction _aMap,
node s,
node e,
reservationProvider _rp = 0 
)
inlinevirtual

Reimplemented in spreadPRAStar.

Definition at line 23 of file SpreadExecSearchAlgorithm.h.

References aMap, end, rp, and start.

Referenced by GetPath(), and SearchUnit::makeMove().

◆ think()

virtual path* spreadExecSearchAlgorithm::think ( )
pure virtual

do next processing for path, returns avaliability of path moves

Implemented in spreadPRAStar.

Referenced by SearchUnit::getCachedMove(), and GetPath().

Member Data Documentation

◆ aMap

GraphAbstraction* spreadExecSearchAlgorithm::aMap
protected

Definition at line 32 of file SpreadExecSearchAlgorithm.h.

Referenced by setTargets().

◆ end

node * spreadExecSearchAlgorithm::end
protected

Definition at line 30 of file SpreadExecSearchAlgorithm.h.

Referenced by setTargets().

◆ rp

reservationProvider* spreadExecSearchAlgorithm::rp
protected

Definition at line 31 of file SpreadExecSearchAlgorithm.h.

Referenced by setTargets().

◆ start

node* spreadExecSearchAlgorithm::start
protected

Definition at line 30 of file SpreadExecSearchAlgorithm.h.

Referenced by setTargets().


The documentation for this class was generated from the following files: