UML Discussions
How to define usages of static classes in class diagram
Hello,
I have the following problem. I have to reverse enginere an technical documentation of an existing project. In this proces I entered the moment that i can't avoid some dirty issues. One of the things I have a trouble to get in an Class Diagram is the usage of static classes, which are only existing static, even on places where it is unnessecery. See the following code:
<pre>
$Warehouse=FactoryWarehouse::getWarehouse($id)
$Location=FactoryLocation::getLocation($id)
$product="banana";
Stock::Save($Warehouse,$Location,$Banana)
<pre>
The usage of the Factory Pattern is something I formiler with. But the last line, the Stock-line, is mij problem. In the Stock-class is a lot of things happen, but the only way it is uses is on this way. PHP is very generous in how a programmer can write its code, so the Stock can be there magicly is is never declered before.
How can I make a class diagram of this?
Thank in advance
I have the following problem. I have to reverse enginere an technical documentation of an existing project. In this proces I entered the moment that i can't avoid some dirty issues. One of the things I have a trouble to get in an Class Diagram is the usage of static classes, which are only existing static, even on places where it is unnessecery. See the following code:
<pre>
$Warehouse=FactoryWarehouse::getWarehouse($id)
$Location=FactoryLocation::getLocation($id)
$product="banana";
Stock::Save($Warehouse,$Location,$Banana)
<pre>
The usage of the Factory Pattern is something I formiler with. But the last line, the Stock-line, is mij problem. In the Stock-class is a lot of things happen, but the only way it is uses is on this way. PHP is very generous in how a programmer can write its code, so the Stock can be there magicly is is never declered before.
How can I make a class diagram of this?
Thank in advance
Categories: Forums & Discussions
UML - class for shape templates and for shape instances
Dear experts,
I work on a tool for engineering. I need to have class TemplateShape which describes objects and their parameters(unit of measure, interval, formula for calculation,...) of the shape type. These parameters are user-defined. I also need a class Shape which will represent objects of the specific shape with its specific numbers(eg. par1 15 mm,..., calculated volume,... ). How can I model that relation between TemplateShape and Template in UML? I will work with objects of both classes.
Thank you very much for your help,
Radek
I work on a tool for engineering. I need to have class TemplateShape which describes objects and their parameters(unit of measure, interval, formula for calculation,...) of the shape type. These parameters are user-defined. I also need a class Shape which will represent objects of the specific shape with its specific numbers(eg. par1 15 mm,..., calculated volume,... ). How can I model that relation between TemplateShape and Template in UML? I will work with objects of both classes.
Thank you very much for your help,
Radek
Categories: Forums & Discussions
Class Diagram for Problem Statement
Hi All,
Could anyone help me with the following problem statement?
1. I have a folder where an external system deposits some flat files which needs to be “picked” up “processed” and “persisted” by the system we want to build
2. The files are simple ASCII files with lines & columns of data (column separator being used is a comma)
3. The files could be divided into multiple categories. The processing of the data within the file would depend on the category it falls under (processing logic is not important as long as the design of the processing unit is fleshed out)
4. Finally the processed data needs to be persisted into the database (the data design need not get into field level details for the processed data storage, as long as the table level ER is delved into)
Please guide in designing & tips to solve it. or any book reference.
Thanks,
Pad Ling
Could anyone help me with the following problem statement?
1. I have a folder where an external system deposits some flat files which needs to be “picked” up “processed” and “persisted” by the system we want to build
2. The files are simple ASCII files with lines & columns of data (column separator being used is a comma)
3. The files could be divided into multiple categories. The processing of the data within the file would depend on the category it falls under (processing logic is not important as long as the design of the processing unit is fleshed out)
4. Finally the processed data needs to be persisted into the database (the data design need not get into field level details for the processed data storage, as long as the table level ER is delved into)
Please guide in designing & tips to solve it. or any book reference.
Thanks,
Pad Ling
Categories: Forums & Discussions
Concrete activity data in an Activity diagram
Hi there,
I am currently working in a project, where I'm designing an executable flow of activities, which is to be executed by a web application.
Each step in the flow, can be of both visual and logical character. One activity might tell the web application to show a page to the user with some template (this might be a menu template of sorts, where the user can navigate via hyperlinks), where as another activity might fetch some data from some resource.
To model this executable flow, I've looked at the UML Activity Diagram. Each activity can be stereotyped to match its type (lets say we have two types <<visual>> and <<logical>> ). Lets say I have a <<visual>> activity, and I want to say that some concrete data is attached to this activity (this might be visual data such as the header, and some description in the body of the page). How does one do this in the Activity diagram? Or are there alternatives to this solution, that fit the problem better?
Thanks.
I am currently working in a project, where I'm designing an executable flow of activities, which is to be executed by a web application.
Each step in the flow, can be of both visual and logical character. One activity might tell the web application to show a page to the user with some template (this might be a menu template of sorts, where the user can navigate via hyperlinks), where as another activity might fetch some data from some resource.
To model this executable flow, I've looked at the UML Activity Diagram. Each activity can be stereotyped to match its type (lets say we have two types <<visual>> and <<logical>> ). Lets say I have a <<visual>> activity, and I want to say that some concrete data is attached to this activity (this might be visual data such as the header, and some description in the body of the page). How does one do this in the Activity diagram? Or are there alternatives to this solution, that fit the problem better?
Thanks.
Categories: Forums & Discussions
UML class operations - urgent question
hello. can somebody help me with this problem, i dont know why there is a addCustomer() funtion in a Customer class.
Why should a new Customer object be created in a Customer object?
the example is as follows
Class Customer
-------------------
+forename
+lastname
-------------------
addCustomer()
Why should a new Customer object be created in a Customer object?
the example is as follows
Class Customer
-------------------
+forename
+lastname
-------------------
addCustomer()
Categories: Forums & Discussions
Can we create a student forum
Greetings to all who read this
as my user name states i am a student that is trying to learn how to use Visual Paradigm... but as i have found out resources are scarce and far apart in organization wise. hopefully someone from the company that wrote the Visual Paradigm program would create a forum designed for the most newbies of newbies.
for now i need to know in the class specification what the meanings of the type pull down menu
New Student Type
as my user name states i am a student that is trying to learn how to use Visual Paradigm... but as i have found out resources are scarce and far apart in organization wise. hopefully someone from the company that wrote the Visual Paradigm program would create a forum designed for the most newbies of newbies.
for now i need to know in the class specification what the meanings of the type pull down menu
New Student Type
Categories: Forums & Discussions
class attributes and aggregations
Isn't it that drawing an aggregation relationship means to have a class attribute of type "pointer to instance of other class" later after code generation? I expected that automatically such an attribute member is put in class A if I draw an aggregation relationship to class B. But it seems it's completely unrelated in UML. Doesn't that sound like an unfinished feature of the UML language?
Actually, it should be enough to give aggregation or composition arrows the attribute name. And the multiplicity defines if it's a simple pointer or array of pointers or similar. And if done this way, it's not necessary anymore to insert those attributes into the class box.
Actually, it should be enough to give aggregation or composition arrows the attribute name. And the multiplicity defines if it's a simple pointer or array of pointers or similar. And if done this way, it's not necessary anymore to insert those attributes into the class box.
Categories: Forums & Discussions
How to identify key abstractions from UC description
[i]Hey All,
I am really locked up with this situation, Can someone please help this novice with the following:
[b]1) How to find key abstractions from a given use case template eg. "Book Flight"
2) How to draw sequence diagram from using the identified key abstractions[/b].
Your help can help this girl commence to complete her project :P
Regards,
Shabz[/i][color=violet] [/color]
I am really locked up with this situation, Can someone please help this novice with the following:
[b]1) How to find key abstractions from a given use case template eg. "Book Flight"
2) How to draw sequence diagram from using the identified key abstractions[/b].
Your help can help this girl commence to complete her project :P
Regards,
Shabz[/i][color=violet] [/color]
Categories: Forums & Discussions
Difference between Model, Package, Subsystem in class diagram?
Please, could anybody explain the difference between Model, Package, Subsystem in a class diagram?
Categories: Forums & Discussions
Im new to UML, does anyone know where to find examples ?
Hi everyone, Im new to UML, does anyone know where i can find examples of Use Case Diagrams, UC descriptions, Data Dictionary, Class Diagrams and Sequence diagrams ?, It will help me better understand if i can see a project right through the various stages.
Thanks, mark
Thanks, mark
Categories: Forums & Discussions
generation of codes
hi, i,m madhu
i,m doing online library management system in STAR UML for my 3rd year project.I wanted to know whether we can generate code for component view(sequence diagram) and deployment view(activity diagram)...
please help..........
i,m doing online library management system in STAR UML for my 3rd year project.I wanted to know whether we can generate code for component view(sequence diagram) and deployment view(activity diagram)...
please help..........
Categories: Forums & Discussions
uml diagrams
hello everyone;
i want to send my uml diagram for checking. i mean, this diagram is right or wrong.
if you have uml diagram expert then assist me.
regards
sumaira :(
i want to send my uml diagram for checking. i mean, this diagram is right or wrong.
if you have uml diagram expert then assist me.
regards
sumaira :(
Categories: Forums & Discussions
Use Case Diagram
I would really appreciate if some one can help me with coming up with a Use Case Diagram for the following scenario..
Command and Control System (CCS)
The CCS is the commander and battle staff for the Battle Robot. Via the Communication Pack, the Command and Control System receives operations orders from Brigade HQ, analyses available intelligence on the terrain and enemy, develops its battle plans, plans its deployment and patrol routes, executes its mission, assesses any reductions to its battle capability, and conducts self- maintenance. With each engagement of the enemy, the CCS learns, increases its lethality, and improves its survivability.
The Battle Robots extraordinary fighting prowess stems from the synergetic relationship between its CCS and Combat System. The CCS develops its battle plans by ‘discussing’ battle tactics with the [b]Combat System[/b]. At the start of the engagement of the enemy, the CCS hands over tactical command to the [b]Combat System[/b], which then controls the Main Weapon Pack, Defensive Measure Pack, to engage and destroy the enemy.
While the Combat System is occupied with tactics, the CCS monitors the battle, continually assessing the effectiveness of the engagements, and the amount of battle damage sustained. Once it has decided that the tactical objectives have been achieved, or that its battle capability has fallen below a minimum sustainable level, the CCS orders the Combat System to disengage from the enemy, and it takes back control of the Battle Robot.
An additional feature for survivability is that, if the CCS is rendered inoperative, the Combat System can assume effective command of the Battle Robot for a short period of time.
The CCS is in full control of the Communication Pack and the Power System.
Thanks in advance.
Command and Control System (CCS)
The CCS is the commander and battle staff for the Battle Robot. Via the Communication Pack, the Command and Control System receives operations orders from Brigade HQ, analyses available intelligence on the terrain and enemy, develops its battle plans, plans its deployment and patrol routes, executes its mission, assesses any reductions to its battle capability, and conducts self- maintenance. With each engagement of the enemy, the CCS learns, increases its lethality, and improves its survivability.
The Battle Robots extraordinary fighting prowess stems from the synergetic relationship between its CCS and Combat System. The CCS develops its battle plans by ‘discussing’ battle tactics with the [b]Combat System[/b]. At the start of the engagement of the enemy, the CCS hands over tactical command to the [b]Combat System[/b], which then controls the Main Weapon Pack, Defensive Measure Pack, to engage and destroy the enemy.
While the Combat System is occupied with tactics, the CCS monitors the battle, continually assessing the effectiveness of the engagements, and the amount of battle damage sustained. Once it has decided that the tactical objectives have been achieved, or that its battle capability has fallen below a minimum sustainable level, the CCS orders the Combat System to disengage from the enemy, and it takes back control of the Battle Robot.
An additional feature for survivability is that, if the CCS is rendered inoperative, the Combat System can assume effective command of the Battle Robot for a short period of time.
The CCS is in full control of the Communication Pack and the Power System.
Thanks in advance.
Categories: Forums & Discussions
Use Case diagram
guys, I have to do an assignment and I need some advices. Herewith I have attached the most important part of the assignment where actors and processes have to be identified.
[b]Problem description[/b]
[u]New system requirements[/u]
• The new system must provide a quick, efficient service. CBC should be able to ship a customer’s order by the
fastest, most efficient means possible (e.g. parcel force, DHL).
• An electronic interface, such as the Web, would be a popular method of ordering/querying an order for some
customers. Where customers do not have Web access, they must be given the same service via telesales staff
at CBC.
• The new order-processing system must be able to track the order from the time it is received until all cleaning
products ordered are despatched. Customers with Web access must be able to view the status of their own
orders. Non-Web customers must be able to easily query the status of their orders via the telesales staff. A
customer must be able to cancel an order if that order has not yet been sent for shipping.
• [color=red]The system must notify the shipping agent (e.g. Parcel force/DHL) as soon as the order is fulfilled and ready for
despatch.[/color]
• [color=red]Reordering of cleaning products from the manufacturers must be an automated process. Pre-defined reorder
levels should automatically trigger purchase orders to the chemical manufacturers.
[/color]
[u]Placing an order[/u]
CBC envisages that ordering via the Web will follow the format used by many successful e-commerce sites: A valid
customer id will be required. Customers will be able to browse the on-line catalogue and select
products/quantities. Once the product selection is complete, the customer will be advised of the final cost of the
order and any unobtainable products. He/she will then be asked to select a delivery method (next day, three days
or 1 week) and the final order cost calculated. If the customer agrees to this, the order will be confirmed and an
order number given.
A similar process will be followed for telephone sales.
[u]Querying an order[/u]
In order to query the status of an order, the customer will need to know his/her customer id. From this, all
outstanding orders may be found. The system must show for a particular order, which products have been
despatched, which are in the process of being despatched and which (if any) are unobtainable. The query must also
show the shipping agent used and the type of delivery (1 day, 3 day, and 1 week).
If order queries are made to telesales staff, a similar process must be followed on-line and the information
conveyed to the customer verbally.
I can identify few actors and use cases here. What do you guys think about the facts I have put here in [color=red]red texts[/color] ? Can you find any use cases from them? If you can, who are the actors of those use cases ?
Any advice and support will be very highly appreciated.
Many thanks
[b]Problem description[/b]
[u]New system requirements[/u]
• The new system must provide a quick, efficient service. CBC should be able to ship a customer’s order by the
fastest, most efficient means possible (e.g. parcel force, DHL).
• An electronic interface, such as the Web, would be a popular method of ordering/querying an order for some
customers. Where customers do not have Web access, they must be given the same service via telesales staff
at CBC.
• The new order-processing system must be able to track the order from the time it is received until all cleaning
products ordered are despatched. Customers with Web access must be able to view the status of their own
orders. Non-Web customers must be able to easily query the status of their orders via the telesales staff. A
customer must be able to cancel an order if that order has not yet been sent for shipping.
• [color=red]The system must notify the shipping agent (e.g. Parcel force/DHL) as soon as the order is fulfilled and ready for
despatch.[/color]
• [color=red]Reordering of cleaning products from the manufacturers must be an automated process. Pre-defined reorder
levels should automatically trigger purchase orders to the chemical manufacturers.
[/color]
[u]Placing an order[/u]
CBC envisages that ordering via the Web will follow the format used by many successful e-commerce sites: A valid
customer id will be required. Customers will be able to browse the on-line catalogue and select
products/quantities. Once the product selection is complete, the customer will be advised of the final cost of the
order and any unobtainable products. He/she will then be asked to select a delivery method (next day, three days
or 1 week) and the final order cost calculated. If the customer agrees to this, the order will be confirmed and an
order number given.
A similar process will be followed for telephone sales.
[u]Querying an order[/u]
In order to query the status of an order, the customer will need to know his/her customer id. From this, all
outstanding orders may be found. The system must show for a particular order, which products have been
despatched, which are in the process of being despatched and which (if any) are unobtainable. The query must also
show the shipping agent used and the type of delivery (1 day, 3 day, and 1 week).
If order queries are made to telesales staff, a similar process must be followed on-line and the information
conveyed to the customer verbally.
I can identify few actors and use cases here. What do you guys think about the facts I have put here in [color=red]red texts[/color] ? Can you find any use cases from them? If you can, who are the actors of those use cases ?
Any advice and support will be very highly appreciated.
Many thanks
Categories: Forums & Discussions
