Stanse  -1
Public Member Functions | List of all members
cz.muni.stanse.threadchecker.graph.RAG Class Reference

Public Member Functions

 RAG ()
 
CheckerError detectDeadlock (Cycle cycle)
 
void addRule (DependencyRule rule) throws RAGException
 
String toDot ()
 

Detailed Description

Class represents RAG graph which determines, whether deadlock can happen

Author
Jan Kucera

Constructor & Destructor Documentation

cz.muni.stanse.threadchecker.graph.RAG.RAG ( )
inline

Member Function Documentation

void cz.muni.stanse.threadchecker.graph.RAG.addRule ( DependencyRule  rule) throws RAGException
inline

Method deletes all vertexes containing process and add all requests and assignment, which is represented by rule.

Parameters
ruleDependencyRule
Exceptions
RAGExceptionwhen rule cannot added to graph => no deadlock can happen
CheckerError cz.muni.stanse.threadchecker.graph.RAG.detectDeadlock ( Cycle  cycle)
inline

Analyses Cycle and tells, whether a deadlock may happen.

Parameters
cycleCycle representing assignment and requirement edges
Returns
CheckerError
String cz.muni.stanse.threadchecker.graph.RAG.toDot ( )
inline

Returns string representation of graph in toDot format

Returns
graph in toDot format

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