-
Notifications
You must be signed in to change notification settings - Fork 1
feature/create-default-observer #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ab3746b
335fbff
c9f1655
93c8907
ee819a5
d06f930
e5a2451
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,6 @@ | |
| import org.integratedmodelling.common.utils.Utils; | ||
| import org.integratedmodelling.klab.api.data.Data; | ||
| import org.integratedmodelling.klab.api.data.KnowledgeGraph; | ||
| import org.integratedmodelling.klab.api.data.Metadata; | ||
| import org.integratedmodelling.klab.api.data.RuntimeAsset; | ||
| import org.integratedmodelling.klab.api.digitaltwin.DigitalTwin; | ||
| import org.integratedmodelling.klab.api.digitaltwin.GraphModel; | ||
|
|
@@ -16,7 +15,6 @@ | |
| import org.integratedmodelling.klab.api.identities.Federation; | ||
| import org.integratedmodelling.klab.api.knowledge.Observable; | ||
| import org.integratedmodelling.klab.api.knowledge.SemanticType; | ||
| import org.integratedmodelling.klab.api.knowledge.Semantics; | ||
| import org.integratedmodelling.klab.api.knowledge.observation.Observation; | ||
| import org.integratedmodelling.klab.api.knowledge.observation.impl.ObservationBuilderImpl; | ||
| import org.integratedmodelling.klab.api.knowledge.observation.impl.ObservationImpl; | ||
|
|
@@ -135,6 +133,7 @@ public void setId(String id) { | |
| super.setId(id); | ||
| if (this.configuration instanceof ConfigurationImpl configurationImpl) { | ||
| configurationImpl.setId(id); | ||
| configurationImpl.setUrl(Utils.URLs.newURL(runtimeService.getUrl() + "/dt/" + id)); | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -470,9 +469,19 @@ public String getTransactionId() { | |
|
|
||
| public void resolveDefaultObserver() { | ||
|
|
||
| if (getFederation() != null | ||
| && getFederation().getId().equals(Federation.LOCAL_FEDERATION_ID)) { | ||
| // TODO | ||
| } | ||
| // TODO | ||
| } | ||
|
Comment on lines
470
to
+477
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Both branches of this method are empty |
||
|
|
||
|
|
||
| if (getFederation() != null && getFederation().getId().equals(Federation.LOCAL_FEDERATION_ID)) { | ||
| public void setFromConfiguration(DigitalTwin.Configuration configuration) { | ||
| if (configuration.isEmpty()) { | ||
| setEmpty(true); | ||
| } else { | ||
| setId(configuration.getId()); | ||
| } | ||
| this.configuration.getNotifications().addAll(configuration.getNotifications()); | ||
| } | ||
|
greptile-apps[bot] marked this conversation as resolved.
|
||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.