modeling

Can an aggregates invariant include a rule based on information from elsewhere?

徘徊边缘 提交于 2019-12-09 16:04:32
问题 In DDD can an aggregates invariant include a rule based on information in a another aggregate? Now I don't think so, however this causes me a problem and I don't know how to solve it. I have an entity called Asset (equipment) which I'm modelling as the root of an aggregate. It has a list of Tags (properties) that describe things like Manufacturer, Model etc. It stores the identity of second aggregate called AssetType which has a list of TagTypes, of which some can be marked as mandatory. Now

uml component diagram difference between assembly and interfaces with dependency

倾然丶 夕夏残阳落幕 提交于 2019-12-09 06:07:33
问题 Can someone explain in what's the difference between elements marked in diagram? I think it only depends on how many interfaces we want to connect. Am I right? http://i.imgur.com/ZnW02Ar.png 回答1: You are not right and the diagram is syntactically incorrect. Let me first explain the concepts and their meaning: Dependency between components exist on the definition level (top part of the diagram). They can be drawn between the required and provided interface, between a component and interface or

How to model in Java EE?

好久不见. 提交于 2019-12-09 04:41:24
问题 Let's say, I have decided to go with Java EE stack for my enterprise application. Now, for domain modelling (or: for designing the M of MVC), which APIs can I safely assume and use, and which I should stay away from... say, via a layer of abstraction? For example, Should I go ahead and litter my Model with calls to Hibernate/JPA API? Or, should I build an abstraction... a persistence layer of my own to avoid hard-coding against these two specific persistence APIs? Why I ask this: Few years

How to create pages with different permissions' views

不想你离开。 提交于 2019-12-08 08:52:28
问题 I need some help to create pages with different views. Don't get me wrong, I don't want anyone to write code for me, I just want to know what I'll need to implement. I'll detail what I need: Ex: Facebook page. If I'm at my profile's page I have one type of view, I can edit all my data, see even not set data and add more information. If I'm visiting a friend's page I can only see what he wants me to and interact with his pages as far as he allowed me. Ex2: One user posted info on some blog. He

Rendering the same model in multiple WPF Viewports

泄露秘密 提交于 2019-12-08 06:42:27
问题 I am working on a WPF application which has 4 viewports. I build a 3D model which is fairly complex and contains 50,000-100,000 Triangles. I then want to display the same 3D model in all 4 viewports. The way I am doing this, it takes about 10 seconds for the model to display in all 4 viewports (which are actually HelixViewports, from the Helix 3D Toolkit for WPF). I have never used multi threading, but I am thinking this may be a good idea. I need the models to render in all 4 viewports in

UML modelling tool for php

时光总嘲笑我的痴心妄想 提交于 2019-12-08 06:11:47
问题 My question is what do you use when you create large scale php applications. I havent found so far a decent UML modelling tools which would have these features: nice GUI adding attributes and methods by click (no like big edit with raw text and new lines) generate php classes drag and drop classes for modelling databases I use MySQL workbench and it is really god for what I need to do. thanks. 回答1: You could give UML Lab (http://uml-lab.com) a try (Note: I'm biased as I'm working for Yatta

Step-by-step formula based _R_ codes for GLM and GLMM

落花浮王杯 提交于 2019-12-08 04:58:46
问题 I know how to fit generalized linear models ( GLMs ) and generalized linear mixed models ( GLMMs ) with glm and glmer from lme4 package in R . Being a student of statistics, I'm interested in learning how to fit GLM and GLMM following step-by-step formula bases R codes. I'd highly appreciate if you point out any resource and/or reference in this regard. Thanks in advance. EDiT I'd like to do GLM and GLMM step by step using formula as we do LM using matrix approach. Is there any R book or

Software structure versus Software architecture [closed]

你离开我真会死。 提交于 2019-12-07 22:56:29
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I can't get the precise differences between software structure and software architecture A simple example explains the precise differences would be very appreciated BTW,I use UML for representing architecture 回答1: Software architecture and Software structure overlap between them.

How to visualize polymorphic invocations in a single diagram?

北战南征 提交于 2019-12-07 18:39:58
问题 First, see these Java codes: Drawable.java package examples.simple.model; public interface Drawable { public void draw(); } Shape.java package examples.simple.model; public abstract class Shape implements Drawable { private Point center; public Point getCenter() { return center; } public void setCenter(Point center) { this.center = center; } } Rectangle.java package examples.simple.model; public class Rectangle extends Shape { public void draw() { System.out.println("Drawing a rectangle....")

Keyboard friendly light weight UML modeling tool? [closed]

馋奶兔 提交于 2019-12-07 03:25:10
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm looking for a free UML tool that runs on Windows and lets me create simple diagrams very fast, with as little mouse fiddling as possible. I have no need for code generation or fancy stuff, just UML style boxes with arrows. What I would like is something that for example lets me add a new class with a