Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A jcop extension implementation method based on behavior variants of object instances

A technology of object instance and extension implementation, applied in the direction of program control device, etc.

Active Publication Date: 2017-10-20
NANJING UNIV
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It also causes the program to activate a behavior variant at runtime, and the behavior of multiple instances of the same type can only change the same

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A jcop extension implementation method based on behavior variants of object instances
  • A jcop extension implementation method based on behavior variants of object instances
  • A jcop extension implementation method based on behavior variants of object instances

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] Below in conjunction with specific embodiment, further illustrate the present invention, should be understood that these embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention, after having read the present invention, those skilled in the art will understand various equivalent forms of the present invention All modifications fall within the scope defined by the appended claims of the present application.

[0031] 1. Behavior variant model based on object instance

[0032] In the traditional COP model, behavior variants (partial methods) represent behaviors that change or replace the basic behavior of the software; the behavior layer is used to encapsulate a set of behavior variants related to a specific context; the dynamic behavior layer activation mechanism activates the behavior layer at runtime , which can dynamically affect the system behavior.

[0033] In the object instance-based behavior va...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a JCOP extension method based on the behavior variant of an object instance. Multithread programming is introduced to context-sensitive software to enable the cross-thread behavior change triggered by the context to become normal, and what is common is that multiple instances in the same type need to make different behavior changes to respond to the same context. However, the existing context-oriented programming language only supports class-unit behavior variant definition, and therefore requirements of the type of application scenarios are hard to meet. According to the method, a behavior variant model based on an object is provided, corresponding grammar facilities are introduced to a JCOP language on this basis, so that an extended JCOP language is obtained, and the problem mentioned is solved in terms of programming model and programming language.

Description

technical field [0001] The invention relates to a behavior variant model and a programming language implementation method in context-oriented programming, in particular to a behavior variant model based on object instances, which extends the JCOP compiler and operating environment. Background technique [0002] As context plays an increasingly important role in software systems, it is a trend to develop and design context-sensitive software. In order to efficiently design and develop context-sensitive software, scholars have proposed solutions at different levels of abstraction, including software architecture level and component-based design. Context-Oriented Programming (COP) method provides a language-level solution for developing context-sensitive software. With the complexity of application scenarios and the improvement of operating efficiency requirements, a large number of multi-threaded programming has been introduced in the development of context-sensitive software...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/44
Inventor 吕建徐锋蒋建亮
Owner NANJING UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products