UniKL Logo

Lehrgebiet Informationssysteme

FB Informatik

FB Informatik
 
LG IS
AG DBIS
AG HIS
Jobs / Tasks
Courses
Publications
Contact
Misc
Impressum
(C) AG DBIS
 

Test Case taDOM3/28-taDOM3-34-CO

taDOM3 Lock Requests of executed Operation insertBefore(contextNode, siblingType, siblingValue) returns Node

The insertBefore operation is executed on the context element node CO and inserts a new previous sibling node before the context node CO. There does not exist a previous sibling, so the context element node was the first child of the parent node PA and the inserted new sibling node (the new first child of PA) is returned.

Behavior specified with base operations:

  • readCO
  • modifyCOPSE
  • modifyPAFCE
Read Set = CO , Write Set = PAFCE COPSE
  • LockRequest[node=CO,lock:NR,PSE:EX,NSE:-,FCE:-,LCE:-]
  • LockRequest[node=PA,lock:CX,PSE:-,NSE:-,FCE:EX,LCE:-]

taDOM3 Lock Requests of checked Operation deleteNode(contextNode) executed on node CO

The deleteNode operation is executed on the context element node CO and deletes the context node. Thereby, the context node is the only child of its parent node.

Bahavior specified with base operations:

  • modifyPAFCE
  • modifyPALCE
  • writeCO
  • writeFC
  • writeCH
  • writeLC
  • writeDC

Read and write sets for execution on CO:

Read Set = , Write Set = CO FC CH LC DC CA AS AX XS PAFCE PALCE
  • LockRequest[node=CO,lock:SX,PSE:EX,NSE:EX,FCE:-,LCE:-] on CO
  • LockRequest[node=PA,lock:-,PSE:-,NSE:-,FCE:EX,LCE:EX] on CO

Operations must be incompatible

CheckExisting LockRequest[node=CO,lock:NR,PSE:EX,NSE:-,FCE:-,LCE:-]
with
Requested LockRequest[node=CO,lock:SX,PSE:EX,NSE:EX,FCE:-,LCE:-] on CO
Requested lock SX on CO incompatible to existing lock NR.
Incompatible
CheckExisting LockRequest[node=CO,lock:NR,PSE:EX,NSE:-,FCE:-,LCE:-]
with
Requested LockRequest[node=PA,lock:-,PSE:-,NSE:-,FCE:EX,LCE:EX] on CO
Compatible
CheckExisting LockRequest[node=PA,lock:CX,PSE:-,NSE:-,FCE:EX,LCE:-]
with
Requested LockRequest[node=CO,lock:SX,PSE:EX,NSE:EX,FCE:-,LCE:-] on CO
Requested lock IX on AC compatible to existing lock IX.
Requested lock CX on PA compatible to existing lock CX.
Compatible
CheckExisting LockRequest[node=PA,lock:CX,PSE:-,NSE:-,FCE:EX,LCE:-]
with
Requested LockRequest[node=PA,lock:-,PSE:-,NSE:-,FCE:EX,LCE:EX] on CO
On PA the first child edge lock EX is incompatible to the requested EX
Incompatible
Test Case Ok