Skip to content
Discussion options

You must be logged in to vote

Your overall design makes sense to me!

This code seems incorrect, because .../lib/obc/obc.pkl is your base template, not where your data is defined:

output = import(".../lib/obc/obc.pkl").output

You likely want to be extending obc.pkl instead.

By the way, I don't know if you need a second layer? You can just one one base layer, and then amend it:

module obc

import "obc_network.pkl" // contains obc.network class definitions
import "obc_algorithms.pkl"  // contains obc.algorithms class definitions

// define your input properties
subsystemEndpoint: Network.Host

// ...

// then define your derived "output" properties
fixed subsystemHostname : String = subsystemEndpoint.hostname
fixed subsy…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gian-didom-emovo
Comment options

Answer selected by gian-didom-emovo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants