A PHP Error was encountered

Severity: Warning

Message: filemtime(): stat failed for D:\xampp_old\htdocs\ebookreading.net\application\writable1/ci_session79723a6f9657350e37b89514e836f4c1ugei9lt0foucc9joabbfliv88b7921cd

Filename: controllers/Base.php

Line Number: 44

Backtrace:

File: D:\xampp_old\htdocs\ebookreading.net\application\controllers\Base.php
Line: 44
Function: filemtime

File: D:\xampp_old\htdocs\ebookreading.net\application\controllers\View.php
Line: 10
Function: __construct

File: D:\xampp_old\htdocs\ebookreading.net\index.php
Line: 380
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: filemtime(): stat failed for D:\xampp_old\htdocs\ebookreading.net\application\writable1/ci_session7abd751a50e88274759874c7f2a9794crp15r5bhm4obnu3tq7378qljqi07bs1u

Filename: controllers/Base.php

Line Number: 44

Backtrace:

File: D:\xampp_old\htdocs\ebookreading.net\application\controllers\Base.php
Line: 44
Function: filemtime

File: D:\xampp_old\htdocs\ebookreading.net\application\controllers\View.php
Line: 10
Function: __construct

File: D:\xampp_old\htdocs\ebookreading.net\index.php
Line: 380
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: filemtime(): stat failed for D:\xampp_old\htdocs\ebookreading.net\application\writable1/ci_session7ac1909d565af6eac50f12e28ead9a9fag36o55v1tm4dnt8onbt14c4uksg0nig

Filename: controllers/Base.php

Line Number: 44

Backtrace:

File: D:\xampp_old\htdocs\ebookreading.net\application\controllers\Base.php
Line: 44
Function: filemtime

File: D:\xampp_old\htdocs\ebookreading.net\application\controllers\View.php
Line: 10
Function: __construct

File: D:\xampp_old\htdocs\ebookreading.net\index.php
Line: 380
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: filemtime(): stat failed for D:\xampp_old\htdocs\ebookreading.net\application\writable1/ci_session7aeb3f4201f6694351ff424db49e9a30r9q3488hhr8vvm29bqbn81n6revcgsvl

Filename: controllers/Base.php

Line Number: 44

Backtrace:

File: D:\xampp_old\htdocs\ebookreading.net\application\controllers\Base.php
Line: 44
Function: filemtime

File: D:\xampp_old\htdocs\ebookreading.net\application\controllers\View.php
Line: 10
Function: __construct

File: D:\xampp_old\htdocs\ebookreading.net\index.php
Line: 380
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: filemtime(): stat failed for D:\xampp_old\htdocs\ebookreading.net\application\writable1/ci_session7b0a5e6924a4a7a131199f26b08227f7rkoad3nbcjs66eubap7bf7aeu3t5hg7l

Filename: controllers/Base.php

Line Number: 44

Backtrace:

File: D:\xampp_old\htdocs\ebookreading.net\application\controllers\Base.php
Line: 44
Function: filemtime

File: D:\xampp_old\htdocs\ebookreading.net\application\controllers\View.php
Line: 10
Function: __construct

File: D:\xampp_old\htdocs\ebookreading.net\index.php
Line: 380
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: filemtime(): stat failed for D:\xampp_old\htdocs\ebookreading.net\application\writable1/ci_session7bef152abcaae41d12f5237d32264aa2rnii9ors02qmejdfg2v0adscuja9b7a9

Filename: controllers/Base.php

Line Number: 44

Backtrace:

File: D:\xampp_old\htdocs\ebookreading.net\application\controllers\Base.php
Line: 44
Function: filemtime

File: D:\xampp_old\htdocs\ebookreading.net\application\controllers\View.php
Line: 10
Function: __construct

File: D:\xampp_old\htdocs\ebookreading.net\index.php
Line: 380
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: filemtime(): stat failed for D:\xampp_old\htdocs\ebookreading.net\application\writable1/ci_session7cb2bff54bb72d08b40cbbfdca184a32rcoru5vidbt4a7uk146u14ob8u6sjfau

Filename: controllers/Base.php

Line Number: 44

Backtrace:

File: D:\xampp_old\htdocs\ebookreading.net\application\controllers\Base.php
Line: 44
Function: filemtime

File: D:\xampp_old\htdocs\ebookreading.net\application\controllers\View.php
Line: 10
Function: __construct

File: D:\xampp_old\htdocs\ebookreading.net\index.php
Line: 380
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: filemtime(): stat failed for D:\xampp_old\htdocs\ebookreading.net\application\writable1/ci_session7ec7fc31f99072536243a68d60a1cdaa2h4gnu5ot96qdjci6bghis9pq9ju29lc

Filename: controllers/Base.php

Line Number: 44

Backtrace:

File: D:\xampp_old\htdocs\ebookreading.net\application\controllers\Base.php
Line: 44
Function: filemtime

File: D:\xampp_old\htdocs\ebookreading.net\application\controllers\View.php
Line: 10
Function: __construct

File: D:\xampp_old\htdocs\ebookreading.net\index.php
Line: 380
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: filemtime(): stat failed for D:\xampp_old\htdocs\ebookreading.net\application\writable1/ci_session7f6dd17f54b4f33e5430efc16cf2e36fjfr3j8u991kr0jb6unelnf05h0plvkk7

Filename: controllers/Base.php

Line Number: 44

Backtrace:

File: D:\xampp_old\htdocs\ebookreading.net\application\controllers\Base.php
Line: 44
Function: filemtime

File: D:\xampp_old\htdocs\ebookreading.net\application\controllers\View.php
Line: 10
Function: __construct

File: D:\xampp_old\htdocs\ebookreading.net\index.php
Line: 380
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: filemtime(): stat failed for D:\xampp_old\htdocs\ebookreading.net\application\writable1/ci_session7f6dd17f54b4f33e5430efc16cf2e36ft66087acqobm0cb510jhg383hiad075c

Filename: controllers/Base.php

Line Number: 44

Backtrace:

File: D:\xampp_old\htdocs\ebookreading.net\application\controllers\Base.php
Line: 44
Function: filemtime

File: D:\xampp_old\htdocs\ebookreading.net\application\controllers\View.php
Line: 10
Function: __construct

File: D:\xampp_old\htdocs\ebookreading.net\index.php
Line: 380
Function: require_once

Properties

Properties

A property is a characteristic 1of a model element. Use properties to define attributes and rules for a given type of modeling element. For example, properties can define the following: attributes representing a project’s start and end dates, a specific textual description of the relationship between a project and the things that make up the project, and a rule that the start date must precede the end date.

Properties are shown as a comma-delimited list of text strings inside a pair of braces ({}) after or below the name of a model element. Each property may be expressed in any natural or computer language. Each text string may be a tag or constraint, both of which are discussed in the next sections.

Tags

A tag is an attribute of a model element and its corresponding value — for example, attributes representing a project’s start and end dates.

Defining tags

In the UML, you create a tag definition when defining a stereotype by showing a name for the attribute, called a keyword, followed by a colon followed by the type of the attribute. The tags defined for a stereotype apply to each model element to which the stereotype is applied.

For example, Figure 9-4 updates Figure 9-1 and shows a tag named Start Date (which is a string representing a project’s start date), a tag named End Date (which is a string representing a project’s end date), and a tag named Descripton (which is a string representing a description of the relationship between a project and a thing that makes up the project). The Start Date and End Date tags are defined for the Project stereotype, and the Descripton tag is defined for the Made Of stereotype.

Defining stereotypes and tags

Figure 9-4. Defining stereotypes and tags

Applying tags

In the UML, applying a tag (called a tagged value) is done when applying a stereotype by showing the name of the attribute followed by an equal sign followed by its value, together called a keyword-value pair. When no equal sign or default value is used, it is assumed that the keyword represents a Boolean value of True, and the absence of the keyword represents a Boolean value of False.

For example, Figure 9-5 updates Figure 9-3 using the tags in Figure 9-4, and shows that the Proj Mngmnt Sys project starts on January 1, 2003 and ends on December 31, 2003. The Java Deployment project starts on December 31, 2003 and ends on January 1, 2003, which is obviously wrong, because the start date is more recent than the end date. Constraints are used to ensure that such errors are not allowed and are discussed in the next section. Figure 9-5 also shows a description for the Proj Mngmnt Sys project’s Made Of stereotyped link and indicates that the description for the Java Deployment project’s Made Of stereotyped link is empty or blank.

Applying stereotypes and tags

Figure 9-5. Applying stereotypes and tags

Constraints

A constraint is a rule for a model element—for example, a rule that a project’s start date must precede the project’s end date. The rules defined for a stereotype apply to each model element to which the stereotype is applied, and each model element to which the stereotype is applied must adhere to the rules.

In the UML, a constraint is shown when defining a stereotype as a text string that may be expressed using the Object Constraint Language (OCL), which is discussed in Chapter 10. Constraints may also be expressed using pseudocode or another language. For example, you can express a constraint using Java, C++, C#, or some other programming or nonprogramming language.

Figure 9-6 updates Figure 9-4 and shows the following constraint on projects:

The End Date must be on or after the Start Date.

Figure 9-6 also shows the following constraint on the relationships between a project and the things that make up a project:

The Description must not be empty.

According to these rules, the Proj Mngmnt Sys project described in Figure 9-5 is considered valid. It’s start date precedes its end date. On the other hand, the Java Deployment project described in Figure 9-5 is considered invalid or erroneous because it starts after it ends.

Defining stereotypes, tags, and constraints

Figure 9-6. Defining stereotypes, tags, and constraints

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.219.14.63