Skip to content

class Config

Package: swiss.avm.up.core.config.common.javamodel.Config

Direct Known Subclasses:


class Config extends NamedResource, AnnotableComment

Configuration class for UP project

Properties

addon

AAddon[0..N]

comment

Describes the intent of this Resource.

TextLiteral[0..1]

A Literal that accepts multiple lines of text.

controllerTree

BaseControllerTree[0..1]

data

User defined data groups

VariableInitCustom[0..N]

defaultController

Controller[0..1]

The controller is the central element of a UP application. A controller defines the smallest, intrinsically functional unit.

A controller essentially consists of two main elements:
Interface and data
[UP - Statemachine]

In addition, the controller has the definition of relations to [Child] controllers.

A controller can also be described as an instantiable type that is instantiated in the [UP - ControllerTree].

diagramColorScheme

Set color scheme for diagrams.

To apply scheme to existing resources use the function provided in the context menu of the config resource.

Skins[0..1]

fileOptions

FileCommentOptions[0..1]

instanceAttributes

Possibility to set various controller instance based attributes.

The instanceAttributes definition of the last config of all related projects takes effect.

ControllerInstanceAttributeInit[0..1]

instanceGroups

Each controller instance is assigned to an instance group.

InstanceGroups[0..1]

Contains all instance groups and a list of all controller instances that have been assigned to an instance group.

logbooks

Logbooks[0..1]

Container of all logbooks

messageInit

Override the default message definition.

The messageInit definition of the last config of all related projects takes effect.

MessageInit[0..1]

messageOptions

The messageOptions definition extends the config of all related projects.

MessageOptions[0..1]

name

The name of this Resource.

StringLiteral[1..1]

options

Common config options.

ConfigOptions[0..1]

platformConfig

PlatformConfig[0..1]

service

The service definition must be set in the last config of all related projects.

AServiceConfig[0..N]

task

Controller - Value initialisation / userspecific dataset for project differntiation

VariableInitTask[0..N]

upact

UPact[0..1]

UPact is a comprehensive framework for testing elements of an application as well as the entire software.

In general, all elements of a controller's interface can be tested using UPact.

Method Summary

compressToolsNeeded

Return:

BooleanLiteral

getAllVariableInit

@TemplateFunction

Return:

List<VariableInitInterface>

getOnlyUsedVariableInit

@TemplateFunction

Return:

List<VariableInitInterface>

getOnlyUsedVariableInitDefaultHardware

@TemplateFunction

Return:

List<VariableInitInterface>

getOnlyUsedVariableInitHardware

@TemplateFunction

Return:

List<VariableInitInterface>

getRoleConfigs

Parameters:

BR_Config

Return:

List<NamedListLiteral>

getServiceUiConfig

@ConfigFunctionSpace

Return:

ServiceUiConfig

getUnitAliasList

Parameters:

Build

Return:

List<OpcUaUnitLiteral>

getVariableInitCustoms

@ConfigFunctionSpace

Return:

List<VariableInitCustom>

getWebLogConfig

@ConfigFunctionSpace

Return:

WebLogConfig

hasAddons

@TemplateFunction

Return:

BooleanLiteral

insertAddonOpcUaExtension

Parameters:

ControllerInstanceWrapper
OpcUaNodeLiteral

Return:

OpcUaNodeLiteral

isOpcUaRequired

@ConfigFunctionSpace

Return:

BooleanLiteral

webrootNeeded

Return:

BooleanLiteral