Questions tagged [generalization]
131 questions
2
votes
1 answer
How to represent generalization relationships in use case specfications?
I have use cases like this:
get from here
When I showed my teacher this, she had required specifying all use cases and representing generalization in document. She want me to reuse Manage Account specfication in Add Account, Delete Account, Edit…

leminhnguyen
- 1,518
- 2
- 13
- 19
2
votes
2 answers
Polymorphism and Genaralization in UML
What is the difference between polymorphism and Generalization . I saw that they look similar in UML. Are they same ?

Keshan akalanka
- 77
- 12
2
votes
1 answer
Multiple generalisation and generalisation sets
I'm try to model stock exchange data, and in doubt how to model the situation: I have 2 types of deals on stock exchange (spot and future), and have orders and trades. So I can do 2 types of deals with isDisjoint generalisation set, and Trade Stage…

Andrey Minakov
- 545
- 2
- 5
- 19
2
votes
1 answer
Generalizing a function to map JSON to Object using ObjectMapper and swift 3
I´m developing a project in Swift 3 using ObjectMapper and I have a lot of functions using the same code.
The function which does the conversion is this:
func convertCategories (response:[[String : Any]]) {
let jsonResponse =…

Joaquin Sainz de la Maza
- 123
- 9
2
votes
1 answer
Generalizing same set of methods to different variables
Greetings StackOverflow,
I have a question for you guys whether it is possible, and if so how, to generalize same set of methods do different set of variables?
Let's illustrate this with an example: assume we have variables, which ALL have the same…

Mora Misina
- 109
- 10
2
votes
3 answers
How do you know when you need to add a separate class?
This is a pretty elementary general question, but it's pretty simple. I understand that you create a class to create objects, but I'm wondering if that is the ONLY reason why you would need to create a separate class? The reason I ask is because in…

Harrison Bergman
- 43
- 1
- 1
- 8
2
votes
3 answers
Java Passing Type as parameter into function expecting subtype
i am new in Java and i try to make some really simple java applications. In my attempts i have come to problem with generalisation. I have a list of Person objects. Person can be Father or Mother.
Then, i have couple of methods with same name…

Jenism
- 107
- 3
- 9
2
votes
2 answers
Airline Reservation Linked List Program
I currently have a program for an airline reservations database that uses listflight_list and string name (which is solely the last name). I need to extend this program so that it stores a linked linked of Passenger objects instead of…

Brittany
- 119
- 1
- 10
2
votes
1 answer
use case multiple generalization
Is it possible to have a generalization like the one in the image attached in use cases?
Thanks everyone in advance.

ajeje93
- 47
- 3
2
votes
1 answer
Java / JSON - Generic Deserializer
What I am trying to achieve is:
We have a JSON Object Stream coming in.
I want to reconstruct a Java Object from the JSON.
I want to apply transformations (like change
format of strings and reject an object if some condition is met…

rjdthegreat
- 204
- 3
- 10
2
votes
2 answers
VBA: When is * usable?
I'm trying to get a grasp on when I can and cannot use * to generalize while coding.
An example of what I mean is xfile.* if the extension does not matter.
Another would be *.xls if I want to refer to any and all excel files.
I'm not just interested…

Tawm
- 535
- 3
- 12
- 25
2
votes
1 answer
Generalizing a Function on Files in Java 8
I'm attempting to write a Concordance program in Java using JDK 8 (to relearn the language). So far, I have the following (package name omitted):
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import…
user4769214
2
votes
1 answer
Cannot generalize my Genetic Algorithm to new Data
I've written a GA to model a handful of stocks (4) over a period of time (5 years). It's impressive how quickly the GA can find an optimal solution to the training data, but I am also aware that this is mainly due to it's tendency to over-fit in the…

COOLBEANS
- 729
- 3
- 13
- 31
2
votes
1 answer
GNU Simulated Annealing
I'm working from the template program given here:
https://www.gnu.org/software/gsl/manual/html_node/Trivial-example.html
The program as they give it compiles and runs perfectly, which is nice. What I would like to do is generalise this method to…

zylatis
- 448
- 3
- 14
2
votes
1 answer
Component - Subcomponent Relationship or Generalization Relationship? in Component Diagram UML
I'm under confuse with the Component - Subcomponent relationship and
Generalization relationship between the components.
When do we need to mention two components as Component - Subcomponent relationship and when to mention them as Generalization…

ironwood
- 8,936
- 15
- 65
- 114