modeling

Android Class Diagram UML

雨燕双飞 提交于 2019-12-10 19:41:49
问题 I'm trying to create a class diagram for an android project. I want my classes represent the activities, services and interfaces that I will implement. There are several questions about it on the web, but I couldn't find a definitive answer. I know that there aren't specific rules for Android and UML, but I have some doubts. How can I represent the relationship between an Activity and a AsyncTask ? How can I indicate that an Activity has an intent to another Activity ? Maybe if someone has an

Correct use of deSolve in ecological modelling of a predator prey system

别说谁变了你拦得住时间么 提交于 2019-12-10 19:03:05
问题 I have a predator-prey model with parameters and initial values as specified. I solve the differential equations two ways here 1. using a for loop and 2. using the deSolve package. I believe the for loop is correct, and should give output as seen in the plot below. ################## #For loop attempt ################## r=0.1; k=100; v=40; s=.1; tbeg=0; tend=1200; nints=1200 c=.06; a=.12; predator0=c(15); prey0=c(50) dt=(tend-tbeg)/nints prey=matrix(0,nints+1,length(prey0)) predator=matrix(0,

What constitutes a rich domain model in a POJO/POCO?

牧云@^-^@ 提交于 2019-12-10 16:48:04
问题 What is the difference between A simple fields-accesors-mutators class A rich-modeled class What constitutes rich modeling in business-domain classes? 回答1: "Rich" as used here implies "rich behavior" (as opposed to state). There is technical behavior and domain behavior. Accessors and mutators are technical; they lack the "why" which defines business interest. Domain objects represent the "why" and encapsulate the "how". Actually, all objects do that; domain objects do it specifically for

UNITY-Changing ONLY certain part of 3D model's color

时光毁灭记忆、已成空白 提交于 2019-12-10 15:15:21
问题 I'm really new with unity3D and I would like to ask a question I have a 3D human model ( a default unity model) which has a hierarchical bone structure. What I want to achieve here is, when I press certain trigger, I want to color one of its limb with different color (just one of its limb). This is the illustration of what I want to achieve I'm really clueless about this, because I've just started learning Unity for about 3 months ago, so I really need your help, this is the property of my

Xtext 2.9 scope provider

假装没事ソ 提交于 2019-12-10 14:52:19
问题 Xtext 2.9 changed the way scope providers work and I don't understand how they work now. Let's say I have the following grammar: grammar org.xtext.example.mydsl.MyDsl with org.eclipse.xtext.common.Terminals generate myDsl "http://www.xtext.org/example/mydsl/MyDsl" Model: ((things+=Thing) | (refs+=Reference))* ; Thing: 'thing' name=ID '{' stuff += Stuff* '}' ; Stuff: 'stuff' name=ID ; Reference: 'reference' thing=[Thing] stuff=[Stuff] ; For the Reference clause to work, I need a scope provider

How do you model a table for unit conversion?

岁酱吖の 提交于 2019-12-10 12:46:19
问题 I'm looking to create a db model of various units and their relation to each other. For instance, 36 inches = 3 feet = 1 yard = .9144 meters etc. This table would also store cups in ounces, pounds, kg, grams, cm and all sorts of measurements. How do you do this? I was thinking about something like this: Amount | Units | ConversionFactor | ConversionUnits 1 | foot | 12 | inches 1 | yard | 36 | inches But frankly, this seems like a terrible idea. Trying to figure out how many feet in a yard

How to model a (Java) Enum in a Database (with SQL92)

家住魔仙堡 提交于 2019-12-10 11:26:13
问题 Hi am modelling an Entity with a column named "Gender". In the application code, the gender is supposed to be an (Java) Enum type, with 2 values (MALE and FEMALE).. how would you model it, knowing that Enums as Datatype are not part of the generic SQL (language) 92. It the data model would have to be portable, in order to be used by several DBMS (Mysql, Oracle, Derby) and several persistence provider (JPA, Hibernate, JDBC). I feel, it hits at 2 levels: - first the level of the Schema and the

How to categorized the UML diagrams based on priorities/ levels?

时间秒杀一切 提交于 2019-12-10 10:57:33
问题 I am new to UML. I have studied more tutorials.I learned two broad categories like, UML Diagrams: 1. Structural Diagrams Class diagram Object diagram Component diagram Deployment diagram 2. Behavioral Diagrams Use case diagram Sequence diagram Collaboration diagram Statechart diagram Activity diagram But I dont know which one is high level design and low design. Anyone list out the UML diagram types based on priorities. (high-level diagrams to low level) 回答1: There is not really a well

How to show event in a sequence diagram

て烟熏妆下的殇ゞ 提交于 2019-12-10 02:36:52
问题 I want to draw a sequence diagram and I want to show interaction between user and UI. User as an actor would fill a text box and on text_change event an asynchronous method of BL class would call. In this case is it possible to show text_change event on the diagram? and how can I show it? thanks 回答1: What you want to do is possible but unusual. Typically these interactions would be provided by the existing system/platform and it would therefore not be necessary to include it in the

What advantages does using Oslo and M have and when would you use it?

风流意气都作罢 提交于 2019-12-09 18:01:19
问题 After attending a talk on Oslo/M I am struggling a bit to see the advantages of using it over existing methods and in what situation it would be useful. I know its quite new and not all details have been released etc but can some one give me some advantages and when you might use it? Thanks, Alex 回答1: This questions seems to have the answer you're looking for: What is model driven development good for? Erik Wynne has a nice blog-post on this topic: Oslo == 42 He also links to a post on MSDN,