# US 2019/0377560 A1 · System and method for runtime adaptable applications

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0377560 A1
- Document ID: US20190377560A1
- Status: Published application
- Kind: A1
- Application number: 16/003,146
- Filed: 2018-06-08
- Published: 2019-12-12
- Earliest claimed: 2018-06-08
- Assignees: NEC Corporation
- Applicants: NEC Laboratories Europe GmbH
- Inventors: Apostolos Papageorgiou; Jonathan Fuerst
- Web page: https://patentgrep.com/patent/US20190377560A1

## CPC

- G06F 8/4443: {Inlining}
- G06F 9/44505: {Configuring for program initiating, e.g. using registry, configuration files}
- G06F 8/33: Intelligent editors
- G06F 8/36: Software reuse
- G06F 8/427: {Parsing}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A platform host for deploying a runtime adaptable application has in-line application scope parameters and is capable of interacting with code selection logic when executed. The platform host includes one or more processors coupled to a non-transitory processor-readable storage medium having processor-executable instructions that, when executed by the processor, cause the platform host to: instantiate the code selection logic in an execution platform, the code selection logic being based, at least in part, on the in-line application scope parameters; determine values of platform configuration parameters at runtime, and execute the runtime adaptable application based on the code selection logic and the values of the platform configuration parameters.

## Claims

### Claim 1

A platform host for deploying a runtime adaptable application, which has in-line application scope parameters and is capable of interacting with code selection logic when executed, the platform host comprising one or more processors coupled to a non-transitory processor-readable storage medium having processor-executable instructions that, when executed by the processor, cause the platform host to:
instantiate the code selection logic in an execution platform, the code selection logic being based, at least in part, on the in-line application scope parameters;
determine values of platform configuration parameters at runtime, and
execute the runtime adaptable application based on the code selection logic and the values of the platform configuration parameters.

### Claim 2 (depends on 1)

The platform host according to claim 1, wherein the application scope parameters are based on one or more of syntax constructs or annotations.

### Claim 3 (depends on 1)

The platform host according to claim 1, wherein the combination of at least two of the in-line application scope parameters, the code selection logic, and the values of the platform configuration parameters correspond to at least one runtime state.

### Claim 4 (depends on 1)

The platform host according to claim 1,
wherein the runtime adaptable application has at least one conditional program flow having at least one alternative function that is dependent on a triggering runtime state, and
wherein, when executed by the processor, the processor-executable instructions cause the platform host to execute the at least one alternative function when the triggering runtime state is determined based on the code selection logic and the values of the platform configuration parameters.

### Claim 5

An engine for a runtime adaptable application, the engine comprising:
a compiler configured to analyze an input program, which has application logic defining alternative functions associated with a functionality and in-line function metadata associated with the alternative functions, and to generate the runtime adaptable application based on the input program.

### Claim 6 (depends on 5)

The engine according to claim 5, wherein the in-line function metadata comprises at least one of hints about implementation or conditional performance of each of the alternative functions.

### Claim 7 (depends on 5)

The engine according to claim 5, wherein the application logic does not include calls to the plurality of alternative functions nor selection logic for selecting from among the alternative functions.

### Claim 8 (depends on 5)

The engine according to claim 5, further comprising an option scoring library configured to evaluate the alternative functions based on the in-line function metadata and determine a score for each of the alternative functions,
wherein the compiler is configured to generate the runtime adaptable application with a call to the engine to determine how to implement the functionality based on the score for each of the alternative functions.

### Claim 9 (depends on 8)

The engine according to claim 8,
wherein the compiler comprises a code generation template library having code for inclusion in the runtime adaptable application, the code having references to the option scoring library, and
wherein the compiler is configured to determine whether to include a particular piece of code from the code generation template library in the runtime adaptable application based on the input program.

### Claim 10 (depends on 9)

The engine according to claim 9 further comprising an option invocation mechanism,
wherein the code of the code generation template library has references to the option invocation mechanism,
wherein the compiler is configured to generate the runtime adaptable application to include calls to at least one of the option invocation mechanism or the option scoring library,
wherein the option invocation mechanism is configured to receive a call from a host executing the runtime adaptable application, and
wherein the engine is configured to determine the score of each of the alternative functions, select a function of the alternative functions having the highest score, and implement the function selected in response to receiving the call.

### Claim 11 (depends on 10)

The engine according to claim 10, wherein the option scoring library is configured to select the option with a highest score, evaluated at runtime, based on the in-line function metadata and runtime values associated with a platform executing the runtime adaptable application,

### Claim 12 (depends on 5)

The engine according to claim 5, wherein the compiler is configured select one of the alternative functions to implement the functionality using dynamic dependency injection.

### Claim 13 (depends on 5)

The engine according to claim 5, wherein the compiler comprises an annotations and syntax library which defines metadata for use as the in-line function metadata, the annotations and syntax library providing descriptions of criteria for use in evaluating the alternative functions at runtime.

### Claim 14 (depends on 5)

The engine according to claim 5, wherein the engine is part of an application developer's development environment.

### Claim 15 (depends on 5)

The engine according to claim 5, wherein the engine is part of a host, hosting an execution platform that is configured to execute the runtime adaptable application.
