The Data Unit

 

The Concept of Electron

 

The Electron is an element inside Sub Shell, can be used as

  1 - Variable 

  2 - Refrence 

  3 - Data Block

 

The Electron is a movable element, where we can move it from Sub Shell to Another,         Also the Electron name can be changed during Runtime.

 

  "Electron is an element inside Sub Shell", what is Sub Shell?

  Sub Shell is a group of Electrons packed together, this mean that Sub

  Shell may be used as (Array of Electrons), (Stack of Electrons) or (Queue

  Of Electrons)

 

  Sub Shell ŕ (Array/Stack/Queue) of Electrons

  Electron  ŕ (Variable/Refrence/Data Block)

 

  "Sub Shell", is this mean that there are something called "Shell"?

  Yes, there is something called the Shell which used as the container of Sub Shells.

 

  There is "Parent" for the Shell; it's the Atom, Where the "Atom" is

  A group of Sub Shells packed together.

 

 When you define the "Electron" it's required to determine its type

 

                  Atom Customer

                        Shell Local

                                SubShell Important

                                        Var Name

                                        Var Address

                                        Var Email

 

 Now, when you need to deal with the variables (Name, Address & Email) you need

To select the address of these electrons (variables) to determine the sub shell which contain the variables.

 

  "Select Address Customers:Local:Important"

 

  Then to use the variables, you need to  "Load Active SubShell From Memory"

  This operation will declare the variables Name,Address & Email As

  Public Variables (if these variables have values saved uploaded before to the  

  SubShell, you will   have it).

  Then you can deal with variables directly with its name if you changed the contents   

  of variables and you want to save it inside Sub shell again  you need to

  "Upload Active SubShell To Memory"

 

Note: using Load/Upload means you have "Client-Server" Data Structure.

 

Playing with Electrons (Copy/Move/Mark/List/Domain)

 

Electrons are Dynamic, can be Copied/Moved from sub shell to another

You can Mark it by adding a mark to its name, for example adding mark "M_" to electrons (Name, Address & telephone) change its names to be (M_Name, M_Address & M_Telephone)

Also you can create a list to collect electrons inside it from different sub shells then you can set any list as your domain (Domain = Virtual Sub Shell) so you can deal with the collected electrons inside the list as electrons inside sub shell.

 

The concept of Sub Shell

 

The Sub Shell is an Array/Stack/Queue of electrons which may be Variable/Data/References, using a container for Electrons is a good concept which means more encapsulation with sophistic polymorphism but the encapsulation here is for data/variable/references between each other and the polymorphism is also for them, now you can have variables with the same name. But you should put them in different Sub Shells.

 

The Concept of Shell

 

The shell is not more than a group of sub shells (Array/Stack/Queue) packed together under common name which is the shell name.

 

The Concept of Atom

 

The atom is not more than a group of Shells packed together under common name which is the atom name.

 

The Goal behind using Atoms & Shells is only getting more Organization

 

The Standard Atom (7 Shells / 28 Sub Shells)

 

The goal behind using Standard atom is increasing the speed of simple applications design where we does not interest with the shells and sub shells names and only concentrate on atom and electrons names.

 

Also Standard Atom provides for Systems programmers and designers the chance to design and develop systems that internally are based on interchange of big amount of data.

 

To say that atom is "Standard" it should

*       Have maximum number of shells = 7 per atom

*       Have maximum number of sub shells = 4 per shell

*       The names of 7 shells should be K,L,M,N,O,P,Q

*       The names of 4 Sub Shells should be S,P,D,F

 

Using Virtual Data Files

 

we need that when we have complex data structure, for example suppose that we have a program with specific file system like Microsoft Word with (*.DOC) file system.

We can manage our document in memory through VDBMS then we collect our data to one file when the user selects ("Save" or "Save As").

 

 

Data File

 

Atom (2 sub shells)

 

Record

Electron of type DataBlock

Relations & Filters

 

Reaction

Database container

Vessel

                                                         

 For defining virtual data file details

          Atom Telephone

Shell K

               SubShell S

                  Var Name_C_50

                  Var Address_C_50

                  Var Telephone_C_20

               SubShell P

 

And for creating the virtual data file, just determine a name (mydata1 for example) and the SubShell address (telephone:k:s for example) as the structure of the virtual data file and the SubShell address (telephone:k:p) of the records

 

NEW VIRTUAL DATA FILE mydata1 DETAILS telephone:k:s DATA telephone:k:p

 

 

 

   For opening the data file

 

            OPEN VIRTUAL DATA FILE mydata1                                                         

 

  Then you can add new record using the load/upload mechanism

 

ADD NEW RECORD

 Load record

 Name = "Mahmoud"

 Address = "Egypt - Menofiya"

 Telephone = "000000000"

 Upload record

 

The Concept of the Vessel

 

The vessel is not more than a container for atoms

You can deal with the vessel through the following statements

 

The Concept of the Reaction

 

Reaction used to select elements (Vessels, Atoms, Shells, Sub Shells) from data unit (Data Structure) to be an input (Parameters) for processing instructions inside resistance (Function).

 

The Reaction helps you by have an abstract layer for relations between elements inside your data structure.

 

The processing instructions that works on reaction elements can be generalized for different reactions and this done through the following interactive statements

 


Example:-