Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/VDM/VDMPP/access-controlPP/     Datei vom 13.4.2020 mit Größe 654 B image not shown  

Quelle  Request.vdmpp   Sprache: VDM

 

class Request

instance variables
  
-- Request targets must have a single subject AND a single resource.   

subject  : PDP`Subject;
resource : PDP`Resource;
actions  : set of PDP`Action;

types

Inst :: map token to FExp`Id;

 operations

public Request: PDP`Subject * PDP`Resource * set of PDP`Action ==> Request
Request(s,r,aset) ==
 (subject  := s;
  resource := r;
  actions  := aset;
); 

pure public GetSubject: () ==> PDP`Subject
GetSubject() == 
  return subject;

pure public GetResource: () ==> PDP`Resource
GetResource() == 
  return resource;

pure public GetActions: () ==> set of PDP`Action
GetActions() == 
  return actions;

end Request

Messung
CHZG
8210010094

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland