sobota, 21 stycznia 2017

Geometric view - SPL language

Zygmunt Ryznar                           SpL  Specification Language
this paper  has been written by Author and is licenced as Creative Commons – 3.0 
  SpL 1  is a descriptive specification language aimed at improving 
documentation and communication by providing simple formal 
description of  any object  in terms of  structure  and behaviour. A 
vocabulary of   this language is a  small  set of   simple English 
words. The precise compact „dictionary” of  words and statements 
is the base upon  which one can compare  objects independently of 
country,  time, profession and type of  business. Author presents the
kernel and subsets of SpL© covering such different areas as 
business, human-being and computer software.  2
I.   INTRODUCTION
The specification languages are focused usually on  the following  
domains:
a. the collection of entities, their relationships and attributes
   (e.g. PSL/PSA–Problem Statement Language/Problem
   Statement   Analyzer in ISDOS project)
b. the collection of objects, their structure, behaviour and
    unlimited relations  not restricted to dbms
c. documenting programs written in a given language (e.g. 
    ANNA – ANNotated Ada)
d. an overall program description  (e.g. PSL – Program 
    Specification Library)
e. modelling programs in terms of data types and functions 
    performed upon them (e.g. VDM-SL)
f. a real time process control (e.g. SDL from TUI).
      The SpL  belongs to the b category. Almost all languages are 
oriented toward information systems and relations embedded in 
data bases while scope of SpL includes any object (real or 
conceptual) and uses innovative data structures (spiral, free-space, 
swarm, triangle, tunnel, curve,blackhole) as well as classical ones 
(network, hierachy, line).
SpL is a descriptive language, so it should not be compared with 
algebraic languages such as CASL, ASM, ACM.  It also has no 
features for mathematical modelling used in  simulations   e.g. 
calculating  time dependent variables  such as net income for each 
month of  a year.
It  differs from the SDL  (Specification and Description Language),
which  focuses  on process control and real-time applications with 
asynchronous communication  between components.    It is not as 
extended as  UML (Unified Modeling Language), VDM-SL 
(Vienna Development Method – Specification Language)   and  not 
equipped with  diagram technology.
SpL is a tool  for  a simple but formal description of  any object  in 
terms of  structure  and behaviour. It is a metalanguage with scope 
defined globally  and locally. The kernel of SpL contains common 
(standard)  phrases and keywords, dedicated to any object.  An 
extension of the language for  selected  areas  is defined in subsets 
called  here SpL-B (business), SpL-H (human-being), and SpL-S 
(systems). This collection of subsets   presents possibilities (and 
limitations) and is extendable for new areas. A Subset is similar to a
shell in  an operating system  for a group of  users allowing  each 
group to use its own commands and keywords.
1 The  primary  name  “OSL”  was replaced  by  “SpL”  to  avoid  confusion
with OSL-Open Software Licence
2  This work was not supported by any organization. My profession is in
the  field  of information  system  analysis and  design.  During  the course  of
many years of interaction with  business and IT professionals, I  concluded
that there is "a must" for a precise specification of subject matter.
Objects may be concrete or abstract (existent or conceptual, virtual)
independent or dependent, etc. An  object  has at least its own 
name, identifier, properties, structure, interface, behaviour and 
"history". An important  feature of  the object is its ability to 
collaborate with  other objects  using visible relations and interface.
External (outside of the area or subject) links may be specified 
using definitions in the ENVIRONMENT section.
The “subject”  is  the main  class of an object within  area,  e.g.  
„bank” in area  of „banking”. The subject list  may  consist of  a set 
of types  (e.g. „bank”  may be universal, retail, wholesale, short 
term cash loans etc). The specification and definitions  may be 
common for all subjects and  private for each type or even for a 
given instance.  The definitions  in the kernel  are common to any 
area.
 
SpL uses “classical” forms of data and geometric conceptual 
(nongraphical) figures for presenting the layout and behaviour of 
objects. Geometric view creates a new type of data for cognitive 
computing (shapes automatically discovered by analysis of variety 
of information). 
List of  geometric figures: 
1.Spiral (single- and multi stranded) 
2.Swarm (moveable homogeneous population with variable density) 
3.Tunnel (population inside of cylinder) 
4.Cylinder (population on the edge) 
5.Triangle (layout defined by 3 factors) 
6.Container (trunk, regular 3-dimentional figure) 
7.Black hole ("off the face of the earth") 
8.Wormhole (injection of foreign, strange information)
The spiral differs from iteration in that sense, that every her roll 
can possess different mechanisms and content and is a subject to 
change (in the learning processes and normal behaviour). Examples
of strands in business could be profit, competitiveness, credit 
ability etc. The swarm relates to the homogeneous reloctable dense 
population – e.g. franchising network. 
The free space means unstructured information (no rules).  The 
tunnel is three-dimensional population with the value X (e.g. the 
sum of credits) along the time Y and densed acording to the third 
factor Z (e.g. credit ability). The cylinder differs from the tunnel 
with the feature that it carries the values on the surface, and the 
tunnel has the full interior. The triangle coud represent "shadows" 
of object on its 3 angles surface, e.g. for employment angles are 
age, education, sex. 
The „black-hole” marks the irreversible disappearance of the object
(e.g. the bankruptcy of the firm) and the „strength of drawing in” is 
her value (e.g. the speed of the bankruptcy). 
    The documentation of  an SpL application  contains a  kernel 
(global definitions), area subset  definitions  and (optionally) a 
detailed specification worked out  for objects  which belong to the 
area. A definition section   deals  with “abstract objects“, while 
specification contains descriptions of physical objects (instances)   
using  phrases and keywords  located in definitions. Definitions   
written in  the    specification  are local  (like local variables in 
computer programs). 
One vital question concerning the  implementation of SpL  is a 
computer-aided support  to   input, correcting  the specification 
(after validation) and  outputting  readable results. In further 
development one can imagine  an „Application Software Factory”, 
that generates ready to use  application software from definitions, 
specifications and skeletal building blocks. II.   SpL NOTATION   (ver.4)
<!...> comment 
<  > container  
=> link  to something external (outside area)
 start-end of   language/subset definition
          start-end of  a given object specification
iiiiiiiii  keywords: by,from,to,when
::= type assignment
:= list  items
= value assignment
: name assignment
@ mark of attibute,feature,property 
@dark unknown, to obtain, to discover
:: belongs to
(x,y,..) list
[name] executive/operational object
xxxxXxxx special or complex names
XXXX basic object 
UUUU.XXXX         qualified name of object
xxxxxxxx some complex or important  keywords   
KKKKKK SpL keywords ((capital letter)
xxxxxxxx operational keywords: event,action
 tags: id,def,spec
&      / conjunctions: and   or
<-> Bidirectional unitary relation  1:1 
<- -="" 1:1="" back="" directional="" relation="" unitary=""> Forward directional unitary relation  1:1 
<=>  <=  => Many to many relations 
     
    
Writing of specification should be supported by a specialized 
editor, that automatically (based on the SpL notation) converts  
words into bold, inverted font and capital/small letters. Otherwise  
all the text (excluding object names) may be written in lower case. 
Another useful facility would be virtual keyboard  with such keys 
as 
 
          ENV:=(REGULATIONS, INFRASTRUCTURE)
          ENV.INFRASTRUCTURE:INFR
          ENV.REGULATIONS:=(LegalActs, Resolutions, 
                                                   Decisions)
         INFR:=(IT,ORG,HR)
         INFR.IT:= (Servers,OperSystems,Applications, 
                            TransDataBases,Users, prLanguages)
         INFR.ORG:=(OrgStructureOfCompany)
         INFR.HR:=(HumanResources) 


    defLang:=(BSL,HSL,SSL)<! defined subsets of SpL>)
    defList:=()
    specList:=()

 
   
  object.id
  class
  object.type::=(eobject, 
                           dobject,    
                           iobject,
                           vobject ,
                           sobject ,
                           oobject)
@sobject:=(noiceReduction,selfTeach,selfRepair,selfKill,
                    selfRestore,selfRestart)
@oobject:=(input(parameters,data),output(info,messages),
                     structure(addComponent,addRelations))
dynamics::=(event,operation/transaction,action,process)
dynamics::=(ev,op/tr,ac,pr)
dynamics.scenario::= (scevt,scop,scac,scpr)
event:ev<!-elementary atomic fact >
trans
ftrans
operation:op
action:ac
process:pr
reverseMode::=(rev,rac,rop,rtr)
pr::=(trigger,action(),endEvent)
scenario:sc
scenario.rank:=(best,worst)
object.Info
keywords:kwords 
olh:=(timeline,events,aging-curve)  
object .role:=(interface, trigger,generator,agent,integrator, 
                       component,monitor,commander,
                       executor/performer,initiator,terminator, 
                       destructor,participator,owner, stockholder, 
                       customer,supplier;partner,employee)
relations::=(activatedby,activates, assisted by,
                     appearence depends on , belongs to 
                      /is owned by , built from ,
                      calls  (),  
                      consists of ,contained in/contains, 
                      controlled by/controls,derived from,
                      existence depends on,exists when/in/for,
                      included in,linked to ...by/links,  
                      refers to, relates to, related by affinity, 
                      represented by/represents,involved in, 
                      shared by/shares, used by/uses)
 state:=(active,inactive,dark,dormant,suspended,aborted,
              idle/waiting,lost,expected,deleted,homeless)
 status:=(generic,real,virtual,undefined) 
 role:=(driver,trigger,reactor,agent,executor,generator)
 reactor::=(acceptance, rejection,constructor) 
rank:=(critical,necessary,most wanted,optional,worst,best)
 rule:=(decision-table,logical-when-if,formula).
{control-flow
 ac::=(ev1,ev2,ev3, ..)
 pr::=(ac1,ac2,ac3,...)
 s(ev1,ev2,ev3, ..)
 p(ev1,ev2,ev3, ..)
   pr::=s(ac1,s(ev1,ev2,ev3),ac2(p(ev4,ev5,ev6),(ev7,ev8,..))
       
 repetition:=(iteration,single spiral,multiband spiral)
   
 activated by <..> with  at  
2                    when  
  finished at < > with <...> when .<..>}
 
 
      {body::=(Contents,Script,Metadata) 
          contents
          script
          metadata}
          layout:=(free-space,swarm/hive,network,hierachy,line, 
                         triangle,tunnel,curve,spiral,blackhole,wormhole)
        
spiral:=(helix,logarithmic,hyperbolic,polygonal,rational,spherical,
              conical,circle-involute, cornu,daisy,epispiral,archimedian,
             fermat,nielsen,poinsot,phyllotaxis)
 
helix
spiral.parameters:=(center-point,number-of-rotation,number-of-
                               band,starting-radius, points-per-rotation,
                               growth-per-rotation(horizontal,vertical))
      <\def>

IV.   SpL-B   SpL FOR BUSINESS
Subset SpL-B  named BSL (Business Specification Language)  is a 
subset of SpL  dedicated to  business objects. The simple banking 
simple example presented  below is for illustration purposes only. 
The full specification should contain also such objects   as 
headoffice, branch, channel of product delivery, customer, deposit 
account, loan accout, loan credit line and executive operational 
objects, like account manager, teller, dealer and IT infrastructure 
objects.  

BUSINESS:=(BANKING,MANUFACTURING, SERVICES)
ENV.business id:=BIC
 
BANKING:=(RETAIL,WHOSALE,UNIVERSAL,MONEY-
MARKET,DERIVATES,SHARES)
ENV:=(bank.id:=BIC,account.id:=IBAN,dadaTables)
dataTables:= (LIBOR,OperatingCurrences,ExchangeRates)
 kwords:=(customer.id,accountCurrency,creationDate, 
       fTrans,fTransLimit,infoSet,Resources,
       operation
       action
       driven/sorted by (fTrans,product, customer, date, 
                            schedule,frequency)
       matched/matches)

 retail.product:=(CURR-ACCOUNT,DEPOSIT,LOAN)
 
object.Info:=(BIC,country, bCurrency, 
                      FinancialYear, number of branches>)
dataTables:=(CorrespondentBanks,Branches, 
                      calendarWorkingDays,bkAccountChart,
                       productList,interestRateTable)
kwords:=(branchNr,customerId,accountNr,rate, 
                balance,balanceSheet)
OperationalObjects:=[teller,accountMgr,customerMgr, 
                                   productMgr,trader]
Bank.objects:=(product,currency,limit,account) 
limit:=(country,industry,customer,currency)
iobject:=(customerPosition,monthlyBalancesheet)
bank.type:=(dmBank,
                     frBank, 
                     corrBank)
                     bkAccount:=(bsAccount
                     nbsAccount
batchOperations:=(eodOperation,  
                               eomOperation,
                               eoyOperation,
                              eopOperation)
       
                objectInfo:=(Account id,owner,co-owner)
                 minBalance,actualBalance,historyStatement)
                 Relates to Customerid
                 rtTrans:=(Open,Quit,Cash-in,Cash-out, 
                               transfer)
                 eomOperation:=(printMonthlyStatement)
       
 
 

  
          transaction-limit=<...>
          info.set(transactions) :=(account,fTrans.incoming,
                          fTrans.outcoming,balance)
                          @sorted by date
          info.set(products):=(deposit,loan)
          info.set(channels):=(branch,echannel)
   
  V.   SPL-H     SPL FOR HUMAN
Subset SpL-H  named HSL (Human Specification Language) is a 
semiformal notation for a human being for anyone interested in 
ontology and existential psychology.  Further development of HSL 
could be  achieved with collaboration of  psychologists and medical
professionals.
              One possible usage of  HSL language is creation of  a 
human resources database in a corporation or even on  an 
international scale for  locating   individuals  which meet  certain 
psychological, intelectual and  professional requirements.
   Similarly to other subsets of SpL this one contains only additional
phrases and keywords  that do not exist in kernel of  the base 
language.
  
 
          class1:=(animals.mammalia.primates.homidae)
          class2:=(nation.ethnic-group.profession.person) 
          kwords:=(life-space,behaviour,scope )
          scope::= (BIOPHYSICAL,GEOGR,CULTURAL, 
3                           SOCIAL, LEGAL)
 
         ENV:=(WORLD,CONTINENT,COUNTRY, 
                         REGION,SITE)
         ENV.LEGAL:= 
         ENV.CULTURAL:=(tradition, history, education, 
                                           religion, ideology, art, radio-tv)
         ENV.BIOPHYSICAL:= (animals.homosapiens)
         ENV.GEOGR:= (homeaddress,company,school)

  
         object.Info:=(id,sex,birth-data)
         homeaddress::= (country,site,street,house,flat)
         sex=(male/female/x )
         family::=(gentree,parent,child,son,daughter,
                       grandSon,grandDaughter,granMa,granPa)
          emotion:=(love,hate,satisfaction,frustration, 
                               agression,enjoyment,anger)
          psychComplex:=(fear of insupport,regression, 
                                    inferiority,persecution)
          habit,hobby,profession,
          health:=(measures, physical-examinations, illness-
                         history),
          role::=(advisor, spouse, manager,patron, partner,  customer,
                     supervisor,participator,owner,supplier),
 
          appearence depends on ,
          assisted by,belongs to, 
          matched/matches
          relates to 
          used by,uses,not used,misused,abused
          state:=(active,inactive,dormant,suspended, 
                       aborted,idle,lost,dead,homeless,retired, 
                        married/divorced/single,ignored)
          place:=(point, area,everywhere,nowhere>
          life-space:=(psychological,social,educational, 
                               financial)
         behaviour
         behaviour.rational::=(selfrealization,need,  
                                             satisfaction)
 behaviour:=(marriage,friendship,career,ilness,aging)
 genotype,fenotype, 
 olh
cluster:= (self, profile/type, attitude,leadership, ability, 
             extraversion,anxiety,independence, healthState, 
             lifeStyle,creativePotential,happiness, 
             BipolarPersonality)
self:=(self-identity,self-assesment,self-sentiment,self-
             esteem,self-regard,self-reliance,self-control, 
             self-image,self-extension,self-structure)
leadership:=(assertive,creative,facilitative,independent, 
                      stable,permissive,leadershipStyle,    
                      leadershipPotential)
ability:=(toughMinded/openMinded,creative,fast/slow, 
                 toleratesDisorder/perfectionistic, 
                grounded/abstracted, improving own learning, 
                problem solving, IQ, ......)
need:=(biological(food,medical,emergency,rescue, 
             coping),cultural,psychological(love,esteem,
            selfrealization),financial-security)
BipolarPersonality:=(Warmth,Reasoning,EmotionalStability
                Concillation,Dominance,Liveliness,Openness,  
                Tension,Rule-Consciousness,SocialBoldness,
                 Sensitivity,Vigilance,Abstractedness,  
                 Privateness,Apprehension,OpennessToChange,
                 Self-Reliance,Perfectionism)
Warmth=Reserved/Warm
Reasoning=Concrete/Abstract
EmotionalStability=emotional/stable
Concillation=concillatory/aggressive
Dominance =Deferential/Dominant
Liveliness =Serious/Lively
Openness=extraversive/introversive
Tension=Relaxed/Tense
Rule-Consciousness=Expedient/Rule-Conscious
SocialBoldness=Shy/Socially Bold
Sensitivity=Utilitarian/Sensitive
Vigilance=Trusting/Vigilant
Abstractedness=Grounded/Abstracted
Privateness=Forthright/Private
Apprehension=Self-Assured/Apprehensive
OpennessToChange=Traditional/Open to Change
Self-Reliance=Group-Oriented/Self-Reliant
Perfectionism=Tolerates Disorder/Perfectionistic 

 

          sex=male   
          family=(married, parent of 3, grandfather of 4)
          state:=(retired, active)
          cluster.self=average
          ability=(openMinded,creative,fast,abstracted)
          need=psychological.self-actualization
          temperament=(emotional,sensitive,
                                  introversive,tense,reserved)
          cluster.happiness=good+
          IQ=> http://www.iq-test.com/

VI.   SpL-S      SpL FOR  SYSTEM
Subset SpL-S named SSL (System Specification Language) may
help  the structured design methodology dealing not only with 
“well” (usually it means “hierarchically”) structured problems and 
systems built under a long-term schedule of integration. 
But a real cause for computerization should be  actual business 
needs  (there must be a managers who want information for current 
decisions).
 The basis for such  design is an understanding  the business of 
company and afterwards the creation of  initial state of the system, 
called the pre-system, containing fundamental technological 
elements built according to the rules that enable their use  in many  
applications and in changeable environment. 
There is a need to develop a specific technique to help 
programmers to design skeletal programs that have standardized 
(but sometimes multifunctional) control flow and are equipped with
many “modifiers” that require processing by  a tuner. The tuner 
may perform   operations such as  inserting   data names and   
parameter values, choosing  entry points, generating CALL 
statements, generating empty modules (driver or stub type),   
inserting  expressions into macrostatements and invoking database 
schema. 
4
INFR.IT:= (servers,operSystems,applications,
                    transDataBases,dataWarehouses, 
                    networkMgtSystem,users,prLanguages) 
::=(SYSTEM.SUBSYSTEM.MODULE.
               PROGRAM.PR-BLOCK)
 PR-BLOCK 
 kwords:=(version,interface,run,runTime,integrated, 
                    standalone,inDevelopment,accepted,
                    notAccepted,library,creatDate,updDate,tested, 
                    rejected,pcode,ecode,callValue,trace,errorCode,
                    inItems,outItems,flow)
trace::=(path,callValue,outValue,errorCode)
process::=(trigger,action(),endEvent)

         object.Info:=(pr-name,version,author,creatDate,
                                updDate,prLanguage,operSystem)
       { control-flow
             activated  by   with 
             at  when   
             finished at < time-point /no-of-repetition> with
              when }
<\def>
 
      objectInfo:=(name,version,author,updDate,codeSize,
                            prLanguage,operSystem)
      resources:=(dataBuffer,eventTrace,stackHandler)
    
        {trigger::=call  
           ac(verif)  
               ev(checkPassword,callVerif)
                    when callVerif  failed exit
           ac(initial) when first call
               ev(bufferDecl,stackDecl),
            act(tuning) 
              ev(paramAnalysis,transform,generateExecutable)
          ac(activate) 
               ev(paramAnalysis,tuner),
          ac(run)
                ev(load,perform,releaseResources,exit)
           }
        
         
          
             call::=(,,
                   ,,
                  (),inItems,outItems)
         <\def>
  <\def>
Structure of specification:

          SUBSYSTEMS:=(list of subsystems)
          
                   
                           
                            ......
                           
                   <\spec>  
           <\spec>
<\spec>
        
VII.   CONCLUSION
SpL is a conceptual schema of the „world”  centered on the 
structure, behaviour and relations of objects. This language is 
oriented on communication  between people  and  in case of the IT  
documenting core features of „system”  before, during  or/and after 
design.
In  reality any business is highly complex  and  dynamic. The key 
to meet this challenge  is improving a communication between 
busines and IT people, modernization of design approach   to  
create systems with variable structure and undefined borders using  
a library of  tunable predefined generalized blocks. Future IT 
systems should function as a collection of many incarnations based 
on the same generalized set of blocks, which can be located 
anywhere in the system, tuned and properly interfaced. It would be 
a good “hybrid” solution both for the specification as well as for 
execution.The  „engine” (to be developed) of  the SpL language 
should be capable to process the contents of the specification  at  all
possible analytical levels, trace relations between objects, and 
present them   in tables and graphs,  verify (if possible) and  make 
the final global presentation of  a given area. 
The SpL language   equipped with  computer-aided tools    would 
seem be a useful initiative to facilitate the documentation  of 
structured design  centered on  objects, events, processes and 
structure. 
REFERENCES
[1]    Zygmunt     Ryznar.1978.    A    conceptual     model     of     an
interfunctional   data  base  system.  Information  and  Management
2/1978
[2]    Zygmunt Ryznar.1981.  S&DL – Structured Design Language.
Angewandte Informatik-Applied Informatics.12/1981

Brak komentarzy:

Prześlij komentarz