C# Class DynamicPathThreadJob, cs-mini-modbot-simulation

Inheritance: ThreadJob
Show file Open project: intel-cornellcup/mini-modbot-simulation Class Usage Examples

Public Properties

Property Type Description
destinationNode Node,
endNode Node,
startNode Node,

Public Methods

Method Description
DynamicPathThreadJob ( Node, startNode, Node, endNode, HashSet closedNodes, double pathLength, bool useItemReduction ) : System.Collections.Generic

Constructor that initializes the start node and end node of the path planning

getClosedNodes ( ) : HashSet

Returns already visited nodes in the A* traversal

getPathWayPoints ( ) : List

Returns the list of path way points that were determined from ThreadFunction

Protected Methods

Method Description
ThreadFunction ( ) : void

Performs an A* traversal from the start node to the end node; however, the end node only provides a direction for the path finding, as once the current node in the traversal is pathLength away from the start node, the traversal is complete

Method Details

DynamicPathThreadJob() public method

Constructor that initializes the start node and end node of the path planning
public DynamicPathThreadJob ( Node, startNode, Node, endNode, HashSet closedNodes, double pathLength, bool useItemReduction ) : System.Collections.Generic
startNode Node, Node object where the path planning starts from
endNode Node, Node object representing where the path should move towards
closedNodes HashSet
pathLength double
useItemReduction bool
return System.Collections.Generic

ThreadFunction() protected method

Performs an A* traversal from the start node to the end node; however, the end node only provides a direction for the path finding, as once the current node in the traversal is pathLength away from the start node, the traversal is complete
protected ThreadFunction ( ) : void
return void

getClosedNodes() public method

Returns already visited nodes in the A* traversal
public getClosedNodes ( ) : HashSet
return HashSet

getPathWayPoints() public method

Returns the list of path way points that were determined from ThreadFunction
public getPathWayPoints ( ) : List
return List

Property Details

destinationNode public property

public Node, destinationNode
return Node,

endNode public property

public Node, endNode
return Node,

startNode public property

public Node, startNode
return Node,