Public Member Functions | Protected Attributes | Static Package Attributes | Private Attributes | Static Private Attributes
plannerRepair Class Reference
Inheritance diagram for plannerRepair:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void connectActionServers ()
void execute_plan (String actionServer, ArrayList< String > params)
void get_plan ()
GraphName getDefaultNodeName ()
void main_runner ()
void make_probPDDL_file (List< String > good, List< String > bad)
void onError (Node node, Throwable throwable)
void onShutdown (Node node)
void onShutdownComplete (Node node)
void onStart (ConnectedNode node)
 plannerRepair ()

Protected Attributes

Condition c = lock.newCondition()
ReentrantLock lock = new ReentrantLock(true)

Static Package Attributes

static boolean goal_processed

Private Attributes

PDDLObject _domain
ConnectedNode _node
Properties _options
Parser _parser
File domain_file
String domain_file_name
String[] excluded_nodes
Log log
Map< String, SimpleActionClient > mp
ArrayList< String > obs_list = new ArrayList<String>()
DiagnosisRepairActionNodeSimpleClient sac
DiagnosisRepairActionNodeSpec spec
WallTimeProvider t
Object threadSync = new Object()

Static Private Attributes

static boolean executing_plan

Detailed Description

This class implements the planner and Repair Actions for the Model based Diagnosis.

Version:
1.0

Definition at line 104 of file plannerRepair.java.


Constructor & Destructor Documentation

new plannerRepair creation to get the plan and repair actions.

Definition at line 187 of file plannerRepair.java.


Member Function Documentation

Extracts the repair actions from the PDDL domain. Makes action client with each action for action server. in the planning graph because it is easier to find a solution for it.

Definition at line 340 of file plannerRepair.java.

void plannerRepair.execute_plan ( String  actionServer,
ArrayList< String >  params 
) [inline]

Repair actions take place here. Executes the plan of actions for repair.

Parameters:
nameof Action Server and list of its parameters if any.

Definition at line 474 of file plannerRepair.java.

void plannerRepair.get_plan ( ) [inline]

Gets plan of repair actions from the planner.

Definition at line 419 of file plannerRepair.java.

GraphName plannerRepair.getDefaultNodeName ( ) [inline]

Overridden method onShutdown of rosjava node. called when node is killed.

Parameters:
nodethe ros node handler.

Definition at line 205 of file plannerRepair.java.

void plannerRepair.main_runner ( ) [inline]

main running method. It contains subscribers and all neccessary main controlling code

Parameters:
nodethe ros node handler.

Subscriber for the /diagnosis topic.

Subscriber for the /observations topic.

Definition at line 249 of file plannerRepair.java.

void plannerRepair.make_probPDDL_file ( List< String >  good,
List< String >  bad 
) [inline]

Creates PDDL Problem file.

Parameters:
listgood (NAB) diagnosis and list of bad (AB) diagnosis.

Definition at line 362 of file plannerRepair.java.

void plannerRepair.onError ( Node  node,
Throwable  throwable 
) [inline]

Definition at line 214 of file plannerRepair.java.

void plannerRepair.onShutdown ( Node  node) [inline]

Definition at line 218 of file plannerRepair.java.

void plannerRepair.onShutdownComplete ( Node  node) [inline]

Definition at line 210 of file plannerRepair.java.

void plannerRepair.onStart ( ConnectedNode  node) [inline]

Overridden method onStart of rosjava node.

Parameters:
nodethe ros node handler.

Definition at line 229 of file plannerRepair.java.


Member Data Documentation

PDDLObject plannerRepair._domain [private]

The domain reference for PDDL.

Definition at line 121 of file plannerRepair.java.

ConnectedNode plannerRepair._node [private]

The current ros node handler.

Definition at line 126 of file plannerRepair.java.

Properties plannerRepair._options [private]

The options properties for the parser.

Definition at line 116 of file plannerRepair.java.

Parser plannerRepair._parser [private]

The parser reference.

Definition at line 111 of file plannerRepair.java.

Condition plannerRepair.c = lock.newCondition() [protected]

The condition reference for locking.

Definition at line 177 of file plannerRepair.java.

File plannerRepair.domain_file [private]

The PDDL domain file reference.

Definition at line 161 of file plannerRepair.java.

Definition at line 162 of file plannerRepair.java.

String [] plannerRepair.excluded_nodes [private]

Definition at line 106 of file plannerRepair.java.

boolean plannerRepair.executing_plan [static, private]

The execution control variables.

Definition at line 182 of file plannerRepair.java.

boolean plannerRepair.goal_processed [static, package]

Definition at line 182 of file plannerRepair.java.

ReentrantLock plannerRepair.lock = new ReentrantLock(true) [protected]

The lock reference for Locking.

Definition at line 172 of file plannerRepair.java.

Log plannerRepair.log [private]

The log reference for logging.

Definition at line 156 of file plannerRepair.java.

Map<String,SimpleActionClient> plannerRepair.mp [private]

The MAP mapping the name of action with action client Object.

Definition at line 136 of file plannerRepair.java.

ArrayList<String> plannerRepair.obs_list = new ArrayList<String>() [private]

The list of the observations.

Definition at line 131 of file plannerRepair.java.

DiagnosisRepairActionNodeSimpleClient plannerRepair.sac [private]

The Simple Cloient Object for the action client.

Definition at line 141 of file plannerRepair.java.

DiagnosisRepairActionNodeSpec plannerRepair.spec [private]

The Specification reference for the Repair Action.

Definition at line 146 of file plannerRepair.java.

WallTimeProvider plannerRepair.t [private]

The Current Time Provider.

Definition at line 151 of file plannerRepair.java.

Object plannerRepair.threadSync = new Object() [private]

The cuncurrency control object.

Definition at line 167 of file plannerRepair.java.


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


tug_ist_diagnosis_repair
Author(s): Safdar Zaman
autogenerated on Mon Jan 6 2014 11:51:12