A type safe state abstraction for coordination in J-like languages

被引:10
|
作者
Damiani, Ferruccio [1 ]
Giachino, Elena [1 ,2 ]
Giannini, Paola [3 ]
Drossopoulou, Sophia [4 ]
机构
[1] Univ Torino, Dipartimento Informat, I-10149 Turin, Italy
[2] Univ Paris 07, PPS, F-75013 Paris, France
[3] Univ Piemonte Orientale, Dipartimento Informat, I-15100 Alessandria, Italy
[4] Univ London Imperial Coll Sci Technol & Med, Dept Comp, London SW7 2BZ, England
关键词
D O I
10.1007/s00236-008-0079-y
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
The state of a concurrent object, intended as some abstraction over the values of the fields of the object, usually determines its coordination behavior. Therefore, state is always in the programmer's mind, even though implicitly. We suggest a feature for J ava-like languages, which makes the state of a concurrent object explicit and supports the expression of the object's behavior depending on the state it is currently in. Namely, an object will be in one of the states declared in its class. The state determines the presence of fields and methods. State transition statements explicitly change the state of an object, and thus change the availability of fields and methods. When a thread calls a method which is declared in the object's class but absent from its current state, it waits, until the state of the object changes to a state which does contain that method. This directly expresses coordination. We claim that this feature makes it easier to understand and develop concurrent programs, and substantiate our claim through the discussion of some popular examples of concurrent programs written using this feature.We develop a type and effect system, which guarantees that, during execution of a method invoked on a concurrent object. No attempt will be made to access fields not available in the current state of and (2) No method invoked on a receiver (syntactically) different from may cause the invocation of a method on the latter guarantee helps to enforce the former and prevents a family of accidental violations of the intended coordination protocol.
引用
收藏
页码:479 / 536
页数:58
相关论文
共 50 条
  • [21] From Flow Logic to static type systems for coordination languages
    De Nicola, Rocco
    Gorla, Daniele
    Hansen, Rene Rydhof
    Nielson, Flemming
    Nielson, Hanne Riis
    Probst, Christian W.
    Pugliese, Rosario
    SCIENCE OF COMPUTER PROGRAMMING, 2010, 75 (06) : 376 - 397
  • [22] From flow logic to static type systems for coordination languages
    De Nicola, Rocco
    Gorla, Daniele
    Hansen, Rene Rydhof
    Nielson, Flemming
    Nielson, Hanne Riis
    Probst, Christian W.
    Pugliese, Rosario
    COORDINATION MODELS AND LANGUAGES, PROCEEDINGS, 2008, 5052 : 100 - +
  • [23] Resonant third-order optical nonlinearities of poly(methyl methacrylate) films containing J-like aggregates of a thiadicarbocyanine dye
    Li, ZY
    Jin, ZH
    Kasatani, K
    Okamoto, H
    CHINESE PHYSICS LETTERS, 2005, 22 (10) : 2571 - 2574
  • [24] Generating type-safe script languages from functional APIs
    Horvath, Gabor
    Kozar, Gabor
    Szugyi, Zalan
    INFORMATICS 2013: PROCEEDINGS OF THE TWELFTH INTERNATIONAL CONFERENCE ON INFORMATICS, 2013, : 122 - 126
  • [25] J-Like Liquid-Crystalline and Crystalline States of Polyaniline Revealed by Thin, Highly Crystalline, and Strongly Oriented Films
    Gospodinova, Natalia
    Tomsik, Elena
    Omelchenko, Olga
    JOURNAL OF PHYSICAL CHEMISTRY B, 2014, 118 (29): : 8901 - 8904
  • [26] J-LIKE AGGREGATION OF AZOBENZENE-LINKED AMPHIPHILE, C6AZOC5N+BR-, IN SINGLE-CRYSTAL
    WATANABE, H
    OKUYAMA, K
    OZAWA, Y
    HIRABAYASHI, K
    SHIMOMURA, M
    KUNITAKE, T
    YASUOKA, N
    NIPPON KAGAKU KAISHI, 1987, (03) : 550 - 555
  • [27] A NECESSARY COORDINATION OF WORDS IN CREATION OF INFORMATION-SEARCHING LANGUAGES OF DESCRIPTIVE TYPE
    VAIS, KL
    NAUCHNO-TEKHNICHESKAYA INFORMATSIYA, 1966, (11): : 33 - &
  • [28] Molecular and biological characterization of a naturally occurring recombinant subgroup B avian leukosis virus with a subgroup J-like long terminal repeat
    Lupiani, Blanca
    Pandiri, Arun R.
    Mays, Jody
    Hunt, Henry D.
    Fadly, Aly M.
    AVIAN DISEASES, 2006, 50 (04) : 572 - 578
  • [29] 本氏烟Dna J-like蛋白在芜菁花叶病毒侵染过程中的作用
    孙超尘
    燕飞
    陈剑平
    浙江农业学报, 2018, 30 (12) : 2056 - 2064
  • [30] Resonant enhanced large third-order optical nonlinearities and responses of polyvinyl alcohol coating films containing J-like aggregates of a cyanine dye
    Li, ZY
    Jin, ZH
    Kasatani, K
    Okamoto, H
    Takenaka, S
    JAPANESE JOURNAL OF APPLIED PHYSICS PART 1-REGULAR PAPERS BRIEF COMMUNICATIONS & REVIEW PAPERS, 2005, 44 (08): : 6084 - 6086