Relation between Manager and Server on the model changes to the domain by using the Domain Modeling Language (DML)

On a project that enables the creation and management of calculation sheets, wherein each worksheet.

It has an owner and two sets of users: those who can change the spreadsheet and those who can read the spreadsheet. Every cell in a spreadsheet can have as a literal content, a reference to another cell of the same sheet or a function

Now suppose if you want to add the following requirements:

• The application should now support a second type of reference: external reference.

In this case, the reference relates to a cell of a spreadsheet.

The reference external are represented by id row;! col, where id represents the identifier spreadsheet containing the desired cell (with the row address; col).

So that I have this source of code according to the domain:

class BubbleDocs{ int nextDocumentId; } class User { String userToken; String username; String password; String name; String email; } class Session { DateTime LastAccess; } class SpreadSheet { int id; String spreadSheetName; String ownerUsername; LocalDate creationDate; int numberRows; int numberColumns; } class Access { } RemoteCellManager { int spreadSheetID; bool updated; } class Cell { int cellRow; int cellColumn; boolean protect; }

• For scalability reasons, it may happen that the application is distributed on multiple servers, each responsible for managing a subset of leaves calculation.

For this reason, an external reference can not refer directly the cell of another worksheet as it may happen that the two sheets calculation in question (the one containing the external reference and referenced in the reference external) are on different servers. To resolve this issue goes away consider a new entity, RemoteCellManager.

An instance of this entity for server and this instance will manage all created external references in the context of spreadsheets associated with the server.

So whenever an external reference, a new type of entity to consider in the field is created, this should be recorded in this entity. For optimization reasons, each reference external keeps the value of the referenced external cell.

Where a cell is changed, all its external references should be updated. The entity 'RemoteCellManager' is responsible for performing this update.

To this solution I will should how the entities get 'RemoteCellManager' the information that a cell has changed and what its new value.

• For performance reasons will be limited the number of external references

They can be created on a server.

This number is equal to 100.

My solution for this problem is based on having the next source of code:

class ExternalReference { int cellRow; int cellCol; int cellID; } class RemoteCellManager extends ExternalReference { } relation ServerHasExternalReference { ExternalReference playsRole reference { multiplicity 0..100; } }

My question is, how can I make the relation between the Manager and the Server while the Manager has a relation to a reference?

-------------Problems Reply------------

To better understand the relation between a Manager and a Server with external reference approach using the Domain Modeling Language (DML):

class ExternalReference {
int cellRow;
int cellCol;
int cellID;
}

class RemoteCellManager extends ExternalReference { }

relation RemoteCellManagerHasExternalReference {
RemoteCellManager playsRole manager {
multiplicity 1..1;
}
ExternalReference playsRole reference {
multiplicity 0..100;
}
}

My idea, and based on what I did understand by the explanation, is to extend RemoteCellReference to the ExternalReference then we will need to code the playsRole and multiplicity with co-relation.

Category:java Views:4 Time:2018-10-09

Related post

  • why doesn't the jquery change event fire when i use the up or down arrows on a select? 2011-09-16

    I am listening to the change event of a select dropdown using jquery and the livequery plugin. $(".myDropdown").livequery("change", function () { }); one thing i noticed (i am using firefox) is that The event handler doesn't fire from hitting the up

  • relation between QEventloop and QAbstractEventDispatcher 2011-05-02

    What is the relation between QEventloop and QAbstractEventDispatcher ? Event loop is a loop that runs the event dispatcher until the loop is broken. But in Documentation of QEventLoop there is no single method that takes an QAbstractEventDispatcher a

  • What is the difference between managed and native resources when disposing? (.NET) 2009-01-29

    I was reading the MSDN article about how to implement IDisposable and I am uncertain about the difference between managed and native resources cited in the article. I have a class that must dispose 2 of its fields when it is disposed. Should I treat

  • the relation between popularity and competition in SEO field 2010-08-03

    what is the relation between popularity and competition in SEO field? i don't mean the formula.i mean the conceptional relation. i mean can we say more competition cause more popularity or viseversa,more popularity cause more competition? more compet

  • What is the relation between Scala and C++ traits 2011-03-06

    Traits is a concept used in Scala as well as in C++ (although in C++ it is more of an idiom than a concept integrated into the language). It is not obvious to me how the concepts are related though. What is the relation between Scala and C++ traits?

  • what is the relation between Canvas and Bitmap? 2011-07-07

    What is the relation between Canvas and Bitmap? Bitmap drawingBitmap = Bitmap.createBitmap(bmp1.getWidth(), bmp1.getHeight(), bmp1.getConfig()); canvas = new Canvas(drawingBitmap); paint = new Paint(); canvas.drawBitmap(bmp1, 0, 0, paint); paint.setX

  • What is the relation between load and response time? 2011-09-20

    I have a theoretical question: What is the relation between load and response time? Is there any relation? I am think of the following example: The response time is mostly constant for a system. But when the load gets over a critical point, the respo

  • Best practice for securing username/password between clients and server 2010-08-10

    Got an application (C# WPF) that needs to "call home" and get updated stuff from a home server. In theory there could be thousands of client out there, needing to communicate over the public internet. Each user will first register with a username and

  • How to implement secure communication between client and server in WCF? 2012-02-12

    Here are my questions: By default, is the communication between client and server (protocol: TCP) in WCF encrypted? I need to implement a model, where only an authorized set of clients can use a WCF server. I thought of something along passing an AUT

  • Difference between managed and unmanaged in-app product android? 2012-02-22

    I went through the developer forum to know the difference between managed an unmanaged in-app products. they are saying that "Items that are unmanaged do not have their transaction information stored on Android Market, which means you cannot query An

  • Is there a relation between integer and register sizes? 2009-07-03

    Recently, I was challenged in a recent interview with a string manipulation problem and asked to optimize for performance. I had to use an iterator to move back and forth between TCHAR characters (with UNICODE support - 2bytes each). Not really think

  • How to share domain classes and business rules between client and server like in RIA Services by writing them only once 2009-12-13

    In an ASP.NET - WCF application I want to share domain classes and business rules between client and server without rewriting them, just like in Silverlight RIA Services. Collecting these in one assembly and referencing this from client and server ca

  • Connecting between iPhone and server 2010-10-03

    I am iPhone developer. I have used JSON framework to communicate between iphone and server, send and receive response. But besides JSON, I would like to know more framework that allow us to communicate between iphone and server. Do you suggest some f

  • How do you encrypt data between client and server running in Flash and Java? 2010-12-22

    We have a multiclient system where the client is written in Flash and the server is written in Java. Currently, communication is done in Flash by usage of flash.net.Socket and the protocol is written in JSON. The server uses a custom port to receive

  • how to communicate between client and server in java 2011-06-06

    I have a chat program. Now the code works for communicate between client and server via command line. But it gives an exception (java.net.SocketException: Socket is closed) while running. Please help me to fix that problem. In a java chat program,how

  • Share code between client and server side 2011-08-08

    I'm developing an Android app with Play framework as backend. There are some classes that are common between the client and server side projects. If I create a library project or a shared folder in Eclipse, and link the classes to both projects, Play

  • Relation between package and a sub package in Java 2011-10-21

    Can anyone please let me know the relation between a package and a sub package in java? Thanks --------------Solutions------------- There is no relation between packages and subpackages. It is just a hierarchical structure for the convenience of a de

  • relation between log4j and apache.commons.logging 2011-12-13

    Could anybody please tell me what's the relation between log4j and apache.commons.logging ? which one is more popular and better ? I have imported an existing Application in which they have imported import org.apache.commons.logging.LogFactory; and w

  • Using ObjectInputStream and ObjectOutputStream between client and server process 2011-12-26

    I develop a client-server java application and I used ObjectOutputStream and ObjectInputStream to send and receive data between client and server process. I need to send Array or object or primitive data but the problem appears when I use ObjectOutpu

  • Java socket exchange message between client and server 2012-02-25

    I have trouble in Java socket multithread while I learn by myself about socket on Oracle's Java page, after reading the example about TCP and UDP socket. I try to use this knowledge to write something to exchange messages between client and server. B

  • Relation between EXTJS and JSON 2012-03-29

    Am new to EXTJS. Can anyone explain me the relation between EXTJS and JSON. From my understanding, this is what i have understood. EXTJS is a framework and JSON is one of the many programming languages that can be used in that Framework. Something si

  • connection establishment between client and server 2012-04-12

    I want to know few basic things about connection establishment between client and server. suppose my web page has left menu where i have some links, on click of those child pages are open in the right side of master page .Now each link is requesting

  • Syncing Outlook data between computers and server 2013-09-17

    I have 3 computers. One running Windows 8; one running Window 7; both running Outlook 2010. My third computer is running Windows 7 and my email server is cs.com. CS.com has a complete list of my contacts. The other 2 don't. A few years back, I used f

  • OneNote 2010 section not synchronizing with SharePoint due to error there is a time date difference between client and server error code 0x80070576 2014-04-28

    OneNote 2010 section not synchronizing with SharePoint due to error there is a time date difference between client and server error code 0x80070576 --------------Solutions------------- Yes, skydrive synced fine. The SharePoint shared location eventua

  • Sharing memory between managed and unmanaged code with P/Invoke 2014-11-02

    I created a C wrapper for a C++ library and I'm calling this C wrapper from my C# managed code. The problem I am facing is that this library involves thousands of iterations and long runtimes. Obviously I need a way to communicate with the C# program

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.312 (s). 11 q(s)