cz::muni::stanse::threadchecker::AbstractFunctionState Class Reference
List of all members.
Detailed Description
Abstract Class which represents dependency rules in one function and all necessary data for stitching with other
FunctionState.
- Author:
- Jan Kučera
Constructor & Destructor Documentation
cz::muni::stanse::threadchecker::AbstractFunctionState::AbstractFunctionState |
( |
|
) |
[inline] |
cz::muni::stanse::threadchecker::AbstractFunctionState::AbstractFunctionState |
( |
LinkedList< BackTrack > |
backTrack |
) |
[inline] |
Member Function Documentation
final LockStack cz::muni::stanse::threadchecker::AbstractFunctionState::getLockStack |
( |
|
) |
[inline, protected] |
UnlockSet cz::muni::stanse::threadchecker::AbstractFunctionState::getUnlockSet |
( |
|
) |
[inline, protected] |
List<DependencyRule> cz::muni::stanse::threadchecker::AbstractFunctionState::getRules |
( |
|
) |
[inline] |
LinkedList<BackTrack> cz::muni::stanse::threadchecker::AbstractFunctionState::getBackTrack |
( |
|
) |
[inline] |
void cz::muni::stanse::threadchecker::AbstractFunctionState::addRules |
( |
Collection< DependencyRule > |
rules |
) |
[inline] |
void cz::muni::stanse::threadchecker::AbstractFunctionState::addRule |
( |
DependencyRule |
rule |
) |
[inline] |
Method add rule to this.rules list and creates keys for all maps for searching.
- Parameters:
-
| rule | DependencyRule which should be added. |
Lock cz::muni::stanse::threadchecker::AbstractFunctionState::getLock |
( |
String |
lockName |
) |
[inline] |
Method pick up lock from lockStack or unlockStack, otherwise create a new instanse of lock named as lockName.
- Parameters:
-
| lockName | String lock's name |
- Returns:
- Lock
Set<JoinNode> cz::muni::stanse::threadchecker::AbstractFunctionState::getJoins |
( |
|
) |
[inline] |
Collection<Lock> cz::muni::stanse::threadchecker::AbstractFunctionState::getScope |
( |
|
) |
[inline] |
Map<String, List<DependencyRule> > cz::muni::stanse::threadchecker::AbstractFunctionState::getRulesBySourceNode |
( |
|
) |
[inline] |
Map<String, List<DependencyRule> > cz::muni::stanse::threadchecker::AbstractFunctionState::getRulesByTargetNode |
( |
|
) |
[inline] |
boolean cz::muni::stanse::threadchecker::AbstractFunctionState::isEmpty |
( |
|
) |
[inline] |
Method determine, whether data contains any valuable data
- Returns:
- boolean whether data doesn't contain something usefull
boolean cz::muni::stanse::threadchecker::AbstractFunctionState::equals |
( |
Object |
obj |
) |
[inline] |
int cz::muni::stanse::threadchecker::AbstractFunctionState::hashCode |
( |
|
) |
[inline] |
String cz::muni::stanse::threadchecker::AbstractFunctionState::toString |
( |
|
) |
[inline] |
void cz::muni::stanse::threadchecker::AbstractFunctionState::lockDown |
( |
String |
lockName |
) |
[inline] |
Method tries to unlock semaphore, if so, removes lock from lockSet. If lock is still lock (recursive type) decrement lock's state or set lock to unlockSet.
- Parameters:
-
| lockName | String name of semaphore |
void cz::muni::stanse::threadchecker::AbstractFunctionState::lockUp |
( |
String |
lockName, |
|
|
CFGNode |
node | |
|
) |
| | [inline] |
Tries to lock semaphore -> if lockSet is isEmpty, creates join node, otherwise creates dependency rule. If lock is already lock, just increase lock state.
- Parameters:
-
| lockName | String name of lock |
| node | CFGNode for setting spot where lock was set to locked state |
The documentation for this class was generated from the following file: