Schema: Stack

(v0.0.1)

Stack

kind: Stack
metadata:
  name: string
  labels:
    property1: string
    property2: string
  annotations:
    ? property1
    ? property2
spec:
  connection:
    timeout: string
    transport:
      redis:
        uri: string
        timeout: 0
  runtime:
    env:
      property1: string
      property2: string
    stacked: true
  models:
    - name: string
      uid: 0
      annotations:
        ? property1
        ? property2
      model:
        name: string
        mcl:
          strategy: string
          models:
            - name: string
      runtime:
        env:
          property1: string
          property2: string
        files:
          - string
        x32: true
        i386: true
      channels:
        - name: string
          alias: string
          expectedModelCount: 0
          selectors:
            property1: string
            property2: string
          annotations:
            ? property1
            ? property2

A stack definition.

Properties

NameTypeRequiredDescription
kindstringtrueIndicate the type of object.
metadataobjectfalseInformation relating to an object.
» namestringfalseThe name of the object.
» labelsobjectfalseIdentifying information used to identify objects within the system (e.g. giving a specific ’label’ to an object).
»» additionalPropertiesstringfalsenone
» annotationsobjectfalseNon identifying information (i.e. information specific to the object itself).
»» additionalPropertiesanyfalsenone
specStackSpectruenone

Enumerated Values

PropertyValue
kindStack

StackSpec

connection:
  timeout: string
  transport:
    redis:
      uri: string
      timeout: 0
runtime:
  env:
    property1: string
    property2: string
  stacked: true
models:
  - name: string
    uid: 0
    annotations:
      ? property1
      ? property2
    model:
      name: string
      mcl:
        strategy: string
        models:
          - name: string
    runtime:
      env:
        property1: string
        property2: string
      files:
        - string
      x32: true
      i386: true
    channels:
      - name: string
        alias: string
        expectedModelCount: 0
        selectors:
          property1: string
          property2: string
        annotations:
          ? property1
          ? property2

Properties

NameTypeRequiredDescription
connectionobjectfalsenone
» timeoutstringfalseModel timeout for messages from the transport.
» transportobjectfalsenone

oneOf

NameTypeRequiredDescription
»» anonymousobjectfalsenone
»»» redisRedisConnectiontrueRedis connection.

xor

NameTypeRequiredDescription
»» anonymousobjectfalsenone
»»» redispubsubRedisConnectiontrueRedis connection.

xor

NameTypeRequiredDescription
»» anonymousobjectfalsenone
»»» mqMessageQueuetrueMessage Queue based connection.

continued

NameTypeRequiredDescription
runtimeStackRuntimefalseRuntime properties of a Stack.
models[ModelInstance]false[A model instance object.]

ModelInstance

name: string
uid: 0
annotations:
  ? property1
  ? property2
model:
  name: string
  mcl:
    strategy: string
    models:
      - name: string
runtime:
  env:
    property1: string
    property2: string
  files:
    - string
  x32: true
  i386: true
channels:
  - name: string
    alias: string
    expectedModelCount: 0
    selectors:
      property1: string
      property2: string
    annotations:
      ? property1
      ? property2

A model instance object.

Properties

NameTypeRequiredDescription
namestringtruenone
uidintegertruenone
annotationsobjectfalseNon identifying information (i.e. information specific to the object itself).
» additionalPropertiesanyfalsenone
modelobjecttruenone
» namestringtruenone
» mclobjectfalsenone
»» strategystringtruenone
»» models[object]trueA list of models belonging to this MCL.
»»» namestringtrueThe name of the MCL model.
runtimeModelInstanceRuntimefalseRuntime properties of a Model Instance.
channels[object]falsenone
» namestringfalseThe name of the channel, used when connecting this channel to the SimBus.
» aliasstringfalseThe alias of the channel, used when the channel name will be determined elsewhere.
» expectedModelCountintegerfalseIndicates how many models are expected to connect to this channel (used by SimBus only).
» selectorsobjectfalseIdentifying information used to identify objects within the system (e.g. giving a specific ’label’ to an object).
»» additionalPropertiesstringfalsenone
» annotationsobjectfalseNon identifying information (i.e. information specific to the object itself).
»» additionalPropertiesanyfalsenone

StackRuntime

env:
  property1: string
  property2: string
stacked: true

Runtime properties of a Stack.

Properties

NameTypeRequiredDescription
envobjectfalseEnvironment variables.
» additionalPropertiesstringfalsenone
stackedbooleanfalseRun all Models (of this stack) in a single instance of ModelC.

ModelInstanceRuntime

env:
  property1: string
  property2: string
files:
  - string
x32: true
i386: true

Runtime properties of a Model Instance.

Properties

NameTypeRequiredDescription
envobjectfalseEnvironment variables.
» additionalPropertiesstringfalsenone
files[string]falseAdditional file arguments passed to ModelC.
x32booleanfalseRun Model with 32bit ModelC executable (x32 abi)
i386booleanfalseRun Model with 32bit ModelC executable (i386 abi)

RedisConnection

uri: string
timeout: 0

Redis connection.

Properties

NameTypeRequiredDescription
uristringfalsenone
timeoutintegerfalsenone

MessageQueue

uri: string

Message Queue based connection.

Properties

NameTypeRequiredDescription
uristringfalsenone

undefined