Question

In: Computer Science

3. For the following collection of statements, describe the sets of actions, objects, and subjects; and...

3. For the following collection of statements, describe the sets of actions, objects, and subjects; and draw an access control matrix to represent the scenario. 1 Mark

Alice can climb trees and eat apples.

Bob can climb fences, eat apples, and wave flags.

Trees can hurt apples.

Carol can jump waves and wave flags.

Solutions

Expert Solution

Subject-

A subject is an active entity that carry out action/ operation on other entities or objects.

In the given question. Subjects are

1. Alice

2. Bob

3. Trees

4. Carol

Object-

An object is a passive entity (not a subject) or an entity acting passively (can be a subject too). in the given question Trees act as subject when they performs action hurt on apples and acts as an object when they get acted upon like climb trees. All the objects are

1. Trees

2. Apples

3. Fences

4. Flags

Actions are verbs performed by subjects on objects like climb, eat, wave

All the actions in the given question are:

1. Climb

2. eat

3. wave

4. hurt

5. Jump

Access control matrix is a table of subjects and objects indicating what actions individual subjects can take upon individual objects

Objects

Subjects

Trees

Apples

Fences

Flags

Alice

Climb

eat

Bob

eat

climb

wave

Trees

hurt

Carol

jump

wave


Related Solutions

#3 A collection represents a group of objects, known as its elements. Some collections allow duplicate...
#3 A collection represents a group of objects, known as its elements. Some collections allow duplicate elements and others do not. Some are ordered and others unordered. Create an Interface MyCollection which is maximum general (abstract) collection possible. (java oop)-> laboratory work
Prove the following statements! 1. If A and B are sets then (a) |A ∪ B|...
Prove the following statements! 1. If A and B are sets then (a) |A ∪ B| = |A| + |B| − |A ∩ B| and (b) |A × B| = |A||B|. 2. If the function f : A→B is (a) injective then |A| ≤ |B|. (b) surjective then |A| ≥ |B|. 3. For each part below, there is a function f : R→R that is (a) injective and surjective. (b) injective but not surjective. (c) surjective but not injective. (d)...
Let A be a collection of sets, then We defined A’ = Union of all elements...
Let A be a collection of sets, then We defined A’ = Union of all elements of A. Definition: If A = NOT the union of C and D , where C and D are non empty sub-collection, such that C’ intersect D’ = empty Then A is coherent. Prove: if A is coherent then A’ is connected (i.e A’ is not the union of two separated sets in standard topology)
Iterating a method over a collection of objects is a common task that you may complete...
Iterating a method over a collection of objects is a common task that you may complete unknowingly each day. Within a collection of similar things, you identify the characteristics that make the individual elements unique and treat them differently according to their classifications. For example, assume that you are at a store and want to pay for something in cash. The bills in your wallet or purse represent a collection of similar objects, differentiated by denomination. It would not be...
(a) Give an example of a collection of closed sets whose union is not closed. (b)...
(a) Give an example of a collection of closed sets whose union is not closed. (b) Give an example of a collection of open sets whose infinite intersection is not open. Thank you!
Consider the following actions taken by transaction T1 on database objects X and Y: R(X), W(X),...
Consider the following actions taken by transaction T1 on database objects X and Y: R(X), W(X), R(Y), W(Y) Give an example of another transaction T2 that, if run concurrently to transaction T1 without some form of concurrency control, could interfere with T1.
Given a collection of actions and userIds an error occurs when a userId takes a specific...
Given a collection of actions and userIds an error occurs when a userId takes a specific action in order for example. Preferably in Javascript. Python or Java is okay too. A => B => => C gives an errror B => A => C no error and etc Write a function that takes in a list of (Actions, UserIds) pairs and returns the user Id that ecounters the error Sample Input: action_user_1 = [ ["A", "1"], ["B", "1"], ["B", "2"],...
This is Python programming Focus 1. Classes and Objects 2. Creating objects 3. Manipulating objects This...
This is Python programming Focus 1. Classes and Objects 2. Creating objects 3. Manipulating objects This lab maps to learning the following objectives: Write a working program that creates a Class, Instances of Objects from that Class, and Functions that use Objects as parameters. For this portion of the lab, you will create a new program for your Professor. Create a class named Student that holds the following data about a student: 1. Name 2. Student ID number 3. GPA...
Learning Outcomes Using Java, maintain a collection of objects using an array. Construct a class that...
Learning Outcomes Using Java, maintain a collection of objects using an array. Construct a class that contains an array as a private instance variable. Construct methods with arrays as parameters and return values. Use partially filled arrays to implement a class where objects can be dynamically added. Implement searching and sorting algorithms. Instructions For this assignment you will be implementing an application that manages a music collection. The application will allow the user to add albums to the collection and...
Which of the following statements about data collection is not true? A. Secondary data was originally...
Which of the following statements about data collection is not true? A. Secondary data was originally collected for another purpose B. Primary data tends to be easily collectible. C. The cost to collect primary data is typically high relative to the cost to collect secondary data. D. It typically takes less time to obtain information through secondary data vs. primary data. E. All of these statements about data collection are true.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT