CN101216759B - Method for accomplishing component possessing contextual feature function in context in computer system - Google Patents

Method for accomplishing component possessing contextual feature function in context in computer system Download PDF

Info

Publication number
CN101216759B
CN101216759B CN2007101731165A CN200710173116A CN101216759B CN 101216759 B CN101216759 B CN 101216759B CN 2007101731165 A CN2007101731165 A CN 2007101731165A CN 200710173116 A CN200710173116 A CN 200710173116A CN 101216759 B CN101216759 B CN 101216759B
Authority
CN
China
Prior art keywords
linguistic context
component
contextual feature
component object
contextual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2007101731165A
Other languages
Chinese (zh)
Other versions
CN101216759A (en
Inventor
苏翼鹏
宋世军
陈榕
牛靖宇
梁宇洲
陈冬晓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
KETAI CENTURY SCIENCE AND TECHNOLOGY Co Ltd SHANGHAI
Original Assignee
KETAI CENTURY SCIENCE AND TECHNOLOGY Co Ltd SHANGHAI
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by KETAI CENTURY SCIENCE AND TECHNOLOGY Co Ltd SHANGHAI filed Critical KETAI CENTURY SCIENCE AND TECHNOLOGY Co Ltd SHANGHAI
Priority to CN2007101731165A priority Critical patent/CN101216759B/en
Publication of CN101216759A publication Critical patent/CN101216759A/en
Application granted granted Critical
Publication of CN101216759B publication Critical patent/CN101216759B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to a method for realizing that component objects possess the function of contextual feature automatically in contextual objects in a software system, comprising the following steps: the contextual component class of the system instantiation obtains the examples of the contextual component objects, the outer component class of the system instantiation obtains the examples of the outer component objects, the examples of the outer component objects enter the examples of the contextual component object, the interfaces of the example of the contextual feature object is invoked, and the examples of the outer component objects leave away from the examples of the contextual component object. With the method for realizing that the component objects possess the function of contextual feature automatically in the contextual objects in the software system, The invention can improve the mobility of the component application, reduce the complexity of the program design, provide more extensive space for the component programme and simple approach for the software factory production, improving the expansibility of the software, describing the model of the actual world better, facilitating the consumers to expand to the different demands, and laying a solid foundation for the further improvement of the computer component based software technique.

Description

Realize in the computer system that member possesses the method for contextual feature function in linguistic context
Technical field
The present invention relates to computer software technical field, particularly computer component software systems field specifically is meant and realizes in a kind of computer software that component object possesses the method for contextual feature function automatically in the linguistic context object.
Background technology
Along with further developing of modern componentization computer software technology, CAR (Component Assembly Runtime) component technology is a kind of component-oriented programming (Component Oriented Programming, be called for short COP) technology, it has defined the component programming model and the programming standard in cover network programming epoch, stipulated the standard called mutually between one group of member, make that the scale-of-two member can self-described, can dynamic link when operation.
At present, the CAR component technology realizes on some advanced embedded OS that under the SDK of this embedded OS (Software Development Kit), the user is easy to write out the member of oneself.
The basic thought source of CAR component technology is in the COM of Microsoft, but it expands the COM of Microsoft, and the two is incompatible.The CAR component technology is supported by CAR language (component description language, the metadata information of description member), CAR compiler, automatic code Core Generator and CAR member base library.The CAR component technology has embodied the characteristic in network programming epoch, and programming interface is simple.
Aspect (aspect) component object model is that a kind of special member class realizes, the feature of aspect object is can be by other component object polymerization, this member class must realize the IAspect interface, and the aspect object is exactly a component object of having realized the IAspect interface.Concrete ins and outs information about aspect component object model and member dynamic polymerization, see also application for a patent for invention: " realizing the square x method of the member dynamic polymerization in the computer software " (application number: 200610027124.4, publication number: CN1851643, open day: on October 25th, 2006).
Wherein, dynamic aggregation is to finish by the Aggregate method of IObject, so each component object of member author definition all has the ability of other aspect objects of polymerization.General static method Attach (IObject* pObj) and Detach (IObject* pObj) method that realizes that dynamic aggregation all provides by aspect member class finished.
In the COM+ of prior art, when COM+ activated object, it created the environment (context) of object, and the environment of object tightly is attached to by COM+ with object.When COM+ was the Object Creation environment, it checked which attribute the directory entry of assembly so that determine to be placed in the environment.The object linguistic context (context) of COM+ closely relies on object, and linguistic context has just lost independence like this.
But in real world, a component object tends to show along with environment change (or having) different feature.When a CChild object is created, he is one " child ", behavior " object for appreciation " with child (Play), and " child " delivered to school, he has just become the student, behavior " study " with student (Study), and when he graduates from school, enter new environment (linguistic context context) preceding he become " child " again.The cat of pet shop (component object) for another example has the feature (aspect) of pet and commodity two aspects.But cat is harsh when getting off may not be pet, more can not be commodity; And in a single day sold, be commodity no longer just, but the pet feature has kept.Obviously, allow cat enter pet shop and just have pet and commodity two aspect features, and just abandon the commodity feature after leaving pet shop, use COM+ can't realize this real model, because COM+ itself be not a kind of polymerization at any time, at any time the dismounting the dynamic aggregation model, so just restricted further developing of modern computer software engineering.
Summary of the invention
The objective of the invention is to have overcome above-mentioned shortcoming of the prior art, provide a kind of can make component object in different linguistic context, have different characteristic, effectively improve the member application flexibility, reduce the complexity of program design, better describe the real world model, use efficient and convenient, stable and reliable working performance, the scope of application to realize that component object possesses the method for contextual feature function automatically in the linguistic context object in the computer software comparatively widely.
In order to realize above-mentioned purpose, it is as follows to realize in the computer software of the present invention that component object possesses the method for contextual feature function automatically in the linguistic context object:
Realize in this computer software that component object possesses the method for contextual feature function automatically in the linguistic context object, its principal feature is that described method may further comprise the steps:
(1) system carries out initialization operation;
(2) system example linguistic context member class obtains linguistic context component object example;
(3) outside the pale of civilization member class of system example obtains the external member object instance;
(4) system operates according to the user, this external member object instance is entered the processing operation of described linguistic context component object example;
(5) component interface of described linguistic context component object example calls according to the needs of caller in system;
(6) system operates according to the user, this external member object instance is left the processing operation of described linguistic context component object example.
Adopted and realized in the computer software of this invention that component object possesses the method for contextual feature function automatically in the linguistic context object, because it has realized that based on aspect member class model and dynamic aggregation technology the external member object instance can have different contextual features when entering different linguistic context, that is to say and to make different external member object instances just can possess corresponding environmental characteristic without each own coding, thereby the object linguistic context (context) that has broken through COM+ closely relies on the restriction of object, having improved the member application flexibility, is once great progress in the Aspect-oriented programming field of CAR member; Reduced the complexity of program design simultaneously, for the member Aspect-oriented programming provides broader space, for software factoryization provides an easier approach; And improved the extensibility of software, and the real world model can be described better, made things convenient for the expansion of user, for further developing of computer component software engineering established solid foundation to different demands.
Description of drawings
Fig. 1 enters the process flow diagram of linguistic context component object example for realizing component object possesses the contextual feature function automatically in the linguistic context object method outer member object instance in the computer software of the present invention.
Fig. 2 leaves the process flow diagram of linguistic context component object example for realizing component object possesses the contextual feature function automatically in the linguistic context object method outer member object instance in the computer software of the present invention.
Fig. 3 a, 3b, 3c and 3d realize in the computer software of the present invention that component object possesses the principle schematic of the method specific implementation process of contextual feature function automatically in the linguistic context object.
Embodiment
In order more to be expressly understood technology contents of the present invention, describe in detail especially exemplified by following examples.
See also illustrated in figures 1 and 2ly, realize in this computer software that component object possesses the method for contextual feature function automatically in the linguistic context object, may further comprise the steps:
(1) system carries out initialization operation;
(2) system example linguistic context member class obtains linguistic context component object example;
(3) outside the pale of civilization member class of system example obtains the external member object instance;
(4) system operates according to the user, this external member object instance is entered the processing operation of described linguistic context component object example, wherein, include contextual feature aspect member generic attribute in the linguistic context member class, this contextual feature aspect member class is the static attribute in the described linguistic context member class, and described processing operation may further comprise the steps:
(a) described external member object instance enters the preceding restriction processing of described linguistic context component object example;
(b) object instance of described linguistic context component object example creation of contexts characteristic aspect member class;
(c) object instance of the described contextual feature of described external member object instance dynamic aggregation aspect member class;
(d) system judge described external member object instance whether dynamic aggregation the object instance of all contextual feature aspect member classes in the described linguistic context component object example;
(e) if not, then repeat above-mentioned steps (b);
(f) described external member object instance dynamic aggregation in the described linguistic context component object example restriction behind the object instance of all contextual feature aspect member classes handle;
(5) component interface of described linguistic context component object example calls according to the needs of caller in system;
(6) system operates according to the user, this external member object instance is left the processing of described linguistic context component object example and operates, and may further comprise the steps:
(a) described external member object instance leaves the preceding restriction processing of described linguistic context component object example;
(b) described external member object instance is dynamically dismantled the object instance of the described contextual feature of polymerization aspect member class;
(c) object instance of the described contextual feature of destruction aspect member class;
(d) object instance of contextual feature aspect member classes all in the described external member object instance described linguistic context component object example of whether dynamically having dismantled polymerization is judged by system;
(e) if not, then repeat above-mentioned steps (b);
(f) restriction behind the object instance of all contextual feature aspect member classes is handled in the described external member object instance described linguistic context component object example of dynamically having dismantled polymerization.
In the middle of practical application, environment when linguistic context is the object operation, if an object has entered linguistic context, this object will have the feature of this linguistic context so, in case object has left linguistic context, environmental characteristic will lose (but this object has probably entered the another one linguistic context again, has new environmental characteristic).The technology that the contextual feature of CAR member is realized has been utilized aspect.
CAR member linguistic context is based on a kind of technology that dynamic aggregation is realized, so-called have contextual feature or lose contextual feature, is exactly that linguistic context can be dynamic polymerization of object or the one or more aspect objects of dismounting polymerization.These aspect to as if linguistic context appointment when in the car file, defining.
Aspect can only exist as the predicate of a subject (certain component object).Does it produce subordinate relation by what and subject so? if an object has entered linguistic context, this object will have the feature of this linguistic context so, in case object has left linguistic context, environmental characteristic will lose.But this object has probably entered the another one linguistic context again, has new environmental characteristic.Here environmental characteristic is exactly aspect aspect.When the component object as subject has entered linguistic context, principal and subordinate's contract has just been signed in the Aspect component object polymerization with it in this linguistic context so.When the component object as subject has left linguistic context, the Aspect component object in this linguistic context will be separated with it so, has just nullified principal and subordinate's contract.
And dynamic aggregation is to finish by the Aggregate method of IObject, so each component object of member author definition all has the ability of other aspect objects of polymerization.
At this, introduce the Context key word in the CAR file:
In CAR, the linguistic context technology realizes that by the linguistic context member class CContext of system general category object CClass passes in and out common linguistic context class object KContext, and a plurality of general category objects that enter KContext are managed, and realized the interface that some are general.User-defined KContext also is a member class, and the contextual feature that it had is decided by its attribute aspect, and context will be with attribute aspect generally speaking.When writing the CAR file, context is used for defining a common linguistic context member class as key word.For example:
module
{
interface?IAspect{
Foo();
}
interface?IHello{
Hello();
}
aspect?AAspect{
interface?IAspect;
}
[aspect(AAspect)]
context?KContext{
interface?IHello;
}
}
Define a KContext linguistic context member class by name in the above-mentioned example, defined a common interface in the class.
Aspect with context key word only exists as an attribute, and the function of Aspect is that static state exists among the context, and context is not worked.When other members enter this context, aspect will dynamic aggregation in this member.
For the Context operation, comprised following steps usually:
System carries out initialization operation;
System example Context member;
The instantiation common components;
Member enters context;
Client codes component invoking interface;
Member leaves context;
To describe entering and leaving of Context component object linguistic context below in detail:
If a component object has entered a linguistic context, the feature that this object can the polymerization linguistic context so, polymerization just the aspect object in the context attributes, thereby make this object have contextual feature; If this object leaves this linguistic context, can dismantle the aspect object in this context attributes of polymerization so.
The CAR component base provides following two functions to finish entering and leaving of linguistic context respectively:
ECode?CObject::EnterContext(PObject?pObject,PContext?pContext);
ECode?CObject::LeaveContext(PObject?pObject,PContext?pContext);
The function that the EnterContext function is finished is: by its feature example of linguistic context Object Creation (aspect object), and component object these aspect objects of dynamic aggregation when entering linguistic context.Comprised following steps:
(1) linguistic context object reference message function OnObjectEntering notice component object is entering linguistic context;
(2) linguistic context Object Creation contextual feature Aspect;
(3) component object dynamic aggregation contextual feature Aspect;
(4) circular flow above-mentioned steps (2), (3) are context all contextual feature aspect and component object polymerization;
(5) linguistic context object reference message function OnObjectEntered notice component object has entered linguistic context.
The function that LeaveContext realizes is the feature of object incomer pObj dismounting polymerization linguistic context pContext, may further comprise the steps:
(1) linguistic context object reference message function OnObjectLeaving notice component object is withdrawing from linguistic context;
(2) component object dismounting contextual feature Aspect;
(3) destroy contextual feature Aspect;
(4) circulation above-mentioned steps (2), (3) are all contextual feature aspect dismountings of pObj;
(5) linguistic context object reference message function OnObjectLeft (pObj) notice component object has withdrawed from linguistic context.
The following points that concern about linguistic context incomer, linguistic context and contextual feature three:
(1) after component object enters linguistic context, the interface function that not polymerization of component object linguistic context itself is realized, object is the feature (aspect object) of polymerization linguistic context.
(2) feature of linguistic context is the attribute of linguistic context, be the aspect object in realization, but linguistic context itself does not have the function of these aspect objects.The function that does not have pet and commodity object instance as pet shop's linguistic context.
(3) feature of linguistic context is the static attribute of linguistic context.
(4) objects can enter a plurality of linguistic context, and each linguistic context can be entered by a plurality of objects.
(5) not every actually object all can enter certain linguistic context, and linguistic context can be provided with condition to the incomer, and the person of satisfying that only has ready conditions just can enter.
(6) object that neither be all can at will leave certain linguistic context, and linguistic context can be provided with condition to object, and the person of satisfying that only has ready conditions just can leave.
For each context member class, can the following several functions of heavy duty satisfy entering of component object and the restriction when leaving is handled:
virtual?CARAPI?OnObjectEntering(PObject?pObj);
// object calls before entering, and can check here whether object meets the demands.
virtual?CARAPI?OnObjectEntered(PObject?pObj);
// object enters back (aspects of context definition in the polymerization) and calls.
virtual?CARAPI?OnObjectLeaving(PObject?pObj);
// object calls before leaving, and whether context can here control and allow object to leave.
virtual?CARAPI?OnObjectLeft(PObject?pObj);
// object calls after leaving, and does aftermath here.
See also shown in Fig. 3 a to Fig. 3 d, wherein the specific implementation principle of method of the present invention is as follows again:
(1) see also shown in Fig. 3 a, CLIENT PROGRAM is created component object pObject and is called its interface method.
(2) see also shown in Fig. 3 b CLIENT PROGRAM creation of contexts object pContext.
(3) CLIENT PROGRAM is called CObject::EnterContext (pObject pContext) is made component object pObject enter linguistic context object pContext.Wherein the CObject::EnterContext function directly calls pContext->ObjectEnter (pObject).ObjectEnter is the function that is directly directly generated according to the CAR fileinfo by the CAR compiler.
(4) see also shown in Fig. 3 c, CLIENT PROGRAM is called the interface function of contextual feature.
(5) see also shown in Fig. 3 d, new structure object enters the linguistic context environment, and (1) above repeating is to (4).
(6) CLIENT PROGRAM is called CObject::LeaveContext (pObject pContext) is made component object pObject leave linguistic context object pContext.Wherein the CObject::LeaveContext function directly calls pContext->ObjectLeft (pObject).ObjectEnter is the function that is directly directly generated according to the CAR fileinfo by the CAR compiler.
In the example code below, its description be that a child (member) enters the example that school (linguistic context) becomes student (contextual feature).
module?car.elastos.com/native/Go2SchoolDemo.dll
{
interface?IChild{
Play();
}
class?CChild{
interface?IChild;
}
interface?IStudent{
Study();
GetID([out]Int32*pId);
}
aspect?AStudent{
interface?IStudent;
}
interface?ISchool{
Open();
}
[aspect(AStudent)]
context?KSchool{
interface?ISchool;
}
}
An aspect member class (AStudent) and a linguistic context member class (KSchool) have been defined in this example.The KSchool linguistic context has feature AStudent.
When a CChild object is created, he is one " child ", behavior " object for appreciation " with child (Play), and " child " delivered to school, he has just become the student, behavior " study " with student (Study), and when he graduates from school, enter new environment (linguistic context context) preceding he become " child " again.
Changing code description into is exactly: a component object (CChild) is created, it only has Play () method, entered a linguistic context (KSchool) at it, this object is understood the feature (AStudent) of polymerization linguistic context so, polymerization just the aspect object (AStudent) in the context attributes, thereby had Study () method; If this object leaves this linguistic context, can dismantle the aspect object in this context attributes of polymerization so.
For service end:
For each context member class, can when object enters and leave, do some things by the following several functions of heavy duty:
(1) OnObjectEntering takes place when object is prepared to enter linguistic context, can be used for checking whether object reaches entrance score or age.
(2) OnObjectEntered takes place when object enters linguistic context, can be used for being student's branch class and student number.
Whether (3) OnObjectLeaving takes place when object prepares to exit linguistic context, can be used for controlling allowing object to leave, and whether graduation grade is up to standard such as judging it.
(4) OnObjectLeft takes place when object leaves linguistic context, can be used for doing aftermath.Announce the list and so on of graduating such as putting up a notice.
" child " " student " above continuing and the example of " school ":
The code of corresponding linguistic context (context) KSchool of KSchool.cpp is as follows:
#include″KSchool.h″
#include″_KSchool.cpp″
ECode?KSchool::OnObjectEntering(
/*[in]*/PObject?pObject)
{
CConsole::WriteLine(L″->KSchool::OnObjectEntering()...″);
// check here whether object reaches entrance score or age
}
ECode?KSchool::OnObjectEntered(
/*[in]*/PObject?pObject)
{
CConsole::WriteLine(L″->KSchool::OnObjectEntered()...″);
// can be used for being student's branch class and student number here
}
ECode?KSchool::OnObjectLeaving(
/*[in]*/PObject?pObject)
{
CConsole::WriteLine(L″->KSchool::OnObjectLeaving()...″);
Whether // control here allows object to leave, and whether graduation grade is up to standard such as judging it.
}
ECode?KSchool::OnObjectLeft(
/*[in]*/PObject?pObject)
{
CConsole::WriteLine(L″->KSchool::OnObjectLeft()...″);
// can be used for doing aftermath here.Announce the list and so on of graduating such as putting up a notice
}
ECode?KSchool::Open()
{
CConsole::WriteLine(L″The?school?opens.″);
return?NOERROR;
}
For aspect aspect object AStudent, we wish also can do some corresponding work at it during by autopolymerization, and it is as follows to write AStudent.cpp:
#include″AStudent.h″
#include″_AStudent.cpp″
ECode?AStudent::OnAspectAttaching(
/*[in]*/PObject?pObject)
{
CConsole::WriteLine(L″->AStudent::OnAspectAttaching()...″);
}
ECode?AStudent::OnAspectDetaching(
/*[in]*/PObject?pObject)
{
CConsole::WriteLine(L″->AStudent::OnAspectDetaching()...″);
}
ECode?AStudent::Study()
{
// printing " who " ' s studying. ");
}
ECode?AStudent::GetID(
/*[out]*/Int32*pId)
{
// get and learn specially.
}
At last, realize a common component object CChild, this aspect object of the AStudent of polymerization automatically when wishing that this component object enters this context of KSchool, and in polymerization print some information after this object:
#include″CChild.h″
#include″_CChild.cpp″
ECode?CChild::OnAspectAttaching(
/*[in]*/PObject?pAspect)
{
CConsole::WriteLine(L″->CChild::OnAspectAttaching()...″);
}
ECode?CChild::OnAspectDetaching(
/*[in]*/PObject?pAspect)
{
CConsole::WriteLine(L″->CChild::OnAspectDetaching()...″);
}
ECode?CChild::Play()
{
// printing " who " ' s playing.
}
For client, the code of specific client end is achieved as follows:
#import″Go2SchoolDemo.dll″
ECode?ElastosMain(const?WStringArray&?args)
{
IChild*?pChild=NULL;
ISchool*?pSchool=NULL;
CChild object that name is Sophie of // establishment
//
ECode?ec=CChild::New(L″Sophie″,&pChild);
pChild1->Play();
Whether // interpretation pChild is a student
IStudent*?pStudent;
ec=IStudent::WeakQuery(pChild,&pStudent);
if(FAILED(ec)){
// print " Sophie ' s not a student yet. ";
}
KSchool object of // establishment
ec=KSchool::New(&pSchool);
pSchool->Open();
// object pChild enters school
ec=CObject::EnterContext(pChild,pSchool);
if(FAILED(ec)){
// ineligible;
}
Whether // interpretation pChild is a student
ec=IStudent::WeakQuery(pChild,&pStudent);
if(SUCCEEDED(ec)){
// call Study () function
pStudent->Study();
// call the GetID function
pStudent->GetID(&id);
}
// graduated and will leave school now
ec=CObject::LeaveContext(pChild,pSchool);
if(FAILED(ec)){
// do not reach the graduation requirement
}
Whether ///interpretation pChild is a student
ec=IStudent::WeakQuery(pChild1,&pStudent);
if(FAILED(ec)){
// print " Sophie ' s not a student anymore. "
}
}
The result of compiling back operation is:
Sophie′s?playing.
Sophie′s?not?a?student?yet.
The?school?opens.
->KSchool::OnObjectEntering()...
->CChild::OnAspectAttaching()...
->AStudent::OnAspectAttaching()...
->KSchool::OnObjectEntered()...
Sophie′s?studying.
Sophie′s?student?ID?is?101
->KSchool::OnObjectLeaving()...
->CChild::OnAspectDetaching()...
->AStudent::OnAspectDetaching()...
->KSchool::OnObjectLeft()...
Sophie′s?not?a?student?anymore.
Adopted and realized in the above-mentioned computer software that component object possesses the method for contextual feature function automatically in the linguistic context object, because it has realized that based on aspect member class model and dynamic aggregation technology the external member object instance can have different contextual features when entering different linguistic context, that is to say and to make different external member object instances just can possess corresponding environmental characteristic without each own coding, thereby the object linguistic context (context) that has broken through COM+ closely relies on the restriction of object, having improved the member application flexibility, is once great progress in the Aspect-oriented programming field of CAR member; Reduced the complexity of program design simultaneously, for the member Aspect-oriented programming provides broader space, for software factoryization provides an easier approach; And improved the extensibility of software, and the real world model can be described better, made things convenient for the expansion of user, for further developing of computer component software engineering established solid foundation to different demands.
In this instructions, the present invention is described with reference to its certain embodiments.But, still can make various modifications and conversion obviously and not deviate from the spirit and scope of the present invention.Therefore, instructions and accompanying drawing are regarded in an illustrative, rather than a restrictive.

Claims (8)

1. realize that component object possesses the method for contextual feature function automatically in the linguistic context object, is characterized in that described method may further comprise the steps in a computer software:
(1) system carries out initialization operation;
(2) system example linguistic context member class obtains linguistic context component object example;
(3) outside the pale of civilization member class of system example obtains the external member object instance;
(4) system operates according to the user, this external member object instance is entered the processing operation of described linguistic context component object example;
(5) component interface of described linguistic context component object example calls according to the needs of caller in system;
(6) system operates according to the user, this external member object instance is left the processing operation of described linguistic context component object example.
2. realize in the computer software according to claim 1 that component object possesses the method for contextual feature function automatically in the linguistic context object, it is characterized in that, include contextual feature aspect member generic attribute in the described linguistic context member class, wherein step (4) may further comprise the steps:
(41) object instance of described linguistic context component object example creation of contexts characteristic aspect member class;
(42) object instance of the described contextual feature of described external member object instance dynamic aggregation aspect member class;
(43) system judge described external member object instance whether dynamic aggregation the object instance of all contextual feature aspect member classes in the described linguistic context component object example;
(44) if not, then return above-mentioned steps (41).
3. realize in the computer software according to claim 2 that component object possesses the method for contextual feature function automatically in the linguistic context object, it is characterized in that the step (41) in the described processing operation that this external member object instance is entered described linguistic context component object example is further comprising the steps of before:
(40) described external member object instance enters the preceding restriction processing of described linguistic context component object example.
4. realize in the computer software according to claim 2 that component object possesses the method for contextual feature function automatically in the linguistic context object, it is characterized in that, further comprising the steps of before in step (44):
(45) described external member object instance dynamic aggregation in the described linguistic context component object example restriction behind the object instance of all contextual feature aspect member classes handle.
5. realize in the computer software according to claim 2 that component object possesses the method for contextual feature function automatically in the linguistic context object, it is characterized in that described contextual feature aspect member class is the static attribute in the described linguistic context member class.
6. according to realizing in each described computer software in the claim 2 to 5 that component object possesses the method for contextual feature function automatically in the linguistic context object, it is characterized in that, described this external member object instance is left the processing operation of described linguistic context component object example, may further comprise the steps:
(61) described external member object instance is dynamically dismantled the object instance of the described contextual feature of polymerization aspect member class;
(62) object instance of the described contextual feature of destruction aspect member class;
(63) object instance of contextual feature aspect member classes all in the described external member object instance described linguistic context component object example of whether dynamically having dismantled polymerization is judged by system;
(64) if not, then return above-mentioned steps (61).
7. realize in the computer software according to claim 6 that component object possesses the method for contextual feature function automatically in the linguistic context object, it is characterized in that the step (61) in the described processing operation of this external member object instance being left described linguistic context component object example is further comprising the steps of before:
(60) described external member object instance leaves the preceding restriction processing of described linguistic context component object example.
8. realize in the computer software according to claim 6 that component object possesses the method for contextual feature function automatically in the linguistic context object, it is characterized in that the step (64) in the described processing operation of this external member object instance being left described linguistic context component object example is further comprising the steps of before:
(65) restriction behind the object instance of all contextual feature aspect member classes is handled in the described external member object instance described linguistic context component object example of dynamically having dismantled polymerization.
CN2007101731165A 2007-12-26 2007-12-26 Method for accomplishing component possessing contextual feature function in context in computer system Expired - Fee Related CN101216759B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101731165A CN101216759B (en) 2007-12-26 2007-12-26 Method for accomplishing component possessing contextual feature function in context in computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101731165A CN101216759B (en) 2007-12-26 2007-12-26 Method for accomplishing component possessing contextual feature function in context in computer system

Publications (2)

Publication Number Publication Date
CN101216759A CN101216759A (en) 2008-07-09
CN101216759B true CN101216759B (en) 2011-05-25

Family

ID=39623198

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101731165A Expired - Fee Related CN101216759B (en) 2007-12-26 2007-12-26 Method for accomplishing component possessing contextual feature function in context in computer system

Country Status (1)

Country Link
CN (1) CN101216759B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006019506A1 (en) * 2004-07-16 2006-02-23 Graphlogic Inc. Object process graph application controller-viewer
CN1275148C (en) * 2004-06-16 2006-09-13 北京大学 Non-functional characteristic assembling method in member software
CN1851643A (en) * 2006-05-30 2006-10-25 上海科泰世纪科技有限公司 Method for realizing member dynamic polymerization for computer software system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1275148C (en) * 2004-06-16 2006-09-13 北京大学 Non-functional characteristic assembling method in member software
WO2006019506A1 (en) * 2004-07-16 2006-02-23 Graphlogic Inc. Object process graph application controller-viewer
CN1851643A (en) * 2006-05-30 2006-10-25 上海科泰世纪科技有限公司 Method for realizing member dynamic polymerization for computer software system

Also Published As

Publication number Publication date
CN101216759A (en) 2008-07-09

Similar Documents

Publication Publication Date Title
US9916136B2 (en) Interface infrastructure for a continuation based runtime
EP3304286B1 (en) Data binding dependency analysis
ES2804506T3 (en) First-class object sharing across multiple interpreted programming languages
US7636897B2 (en) System and method for property-based focus navigation in a user interface
US20030200533A1 (en) Method and apparatus for creating software objects
Greifenberg et al. A comparison of mechanisms for integrating handwritten and generated code for object-oriented programming languages
Sabraoui et al. Gui code generation for android applications using a mda approach
CN101231590A (en) IVR flow editor analytic model operated base on script and COM component
CN103838711A (en) Definable typed semantic parsing system and method based on rules
CN101216759B (en) Method for accomplishing component possessing contextual feature function in context in computer system
Thomas et al. Software real-time resource modeling
JP2003500739A5 (en)
Andrade et al. Aspectj-based idioms for flexible feature binding
Köster et al. Connecting Simulink to OSEK: Automatic code generation for real-time operating systems with Targetlink
KR20130012603A (en) Method of creating virtual machine compatible with multiple operating system, and program recording media for virtual machine
de Melo et al. Towards a flexible UI model for automotive human-machine interaction
US8484629B2 (en) Programming model for modular development
Yoo et al. The robot software communications architecture (RSCA): QoS-aware middleware for networked service robots
CN107329755A (en) A kind of HZPHP frameworks
Ubayashi et al. An AOP implementation framework for extending join point models
CN103186388A (en) Software installation method and device
CN1155694A (en) Method and apparatus for subclassing system object model classes in dynamic languages
Ali et al. Design Pattern for Multimedia Mobile Application
Vojtko et al. Adaptability of an embedded operating system: A generator of a platform dependent code
Ubayashi et al. A reflective aspect-oriented model editor based on metamodel extension

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110525

Termination date: 20151226

EXPY Termination of patent right or utility model