• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

WindhoverLabs / phoebus / #77

03 Sep 2023 05:01PM UTC coverage: 16.544% (-0.02%) from 16.566%
#77

push

web-flow
Merge pull request #87 from WindhoverLabs/param_export

Param export

50 of 50 new or added lines in 3 files covered. (100.0%)

17740 of 107229 relevant lines covered (16.54%)

0.17 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

31.25
/core/commander-core/src/main/java/com/windhoverlabs/pv/yamcs/YamcsAware.java
1
package com.windhoverlabs.pv.yamcs;
2

3
import com.windhoverlabs.yamcs.core.YamcsServer;
4
import java.time.Instant;
5
import org.yamcs.protobuf.Mdb.SignificanceInfo.SignificanceLevelType;
6
import org.yamcs.protobuf.ProcessorInfo;
7

8
/**
9
 * Marks a component as being aware of the global YamcsObjectManager state. This state includes the
10
 * connected instance and/or processor.
11
 */
12
public interface YamcsAware {
13
  public enum YamcsAwareMethod {
1✔
14
    onYamcsDisconnected
1✔
15
  };
16

17
  default void onYamcsObjectManagerInit() {
18
    changeDefaultInstance();
×
19
  }
×
20

21
  // TODO:It might be worth considering passing the YamcsServer/YamcsInstance object to the
22
  // implementors of this function
23
  default void onInstancesReady(YamcsServer s) {}
1✔
24

25
  default void onYamcsConnecting() {}
×
26

27
  // Called when we fail to connect to the server.
28
  default void onYamcsConnectionFailed(Throwable t) {}
×
29

30
  /** Called when we the global connection to yamcs was successfully established */
31
  // TODO:It might worth considering passing the YamcsServer/YamcsInstance object to the
32
  // implementors of this function
33
  default void onYamcsConnected() {}
×
34

35
  /** Called when the yamcs is connection went lost */
36
  default void onYamcsDisconnected() {}
1✔
37

38
  /** The activated instance has changed. */
39
  default void changeInstance(String instance) {}
×
40

41
  default void changeDefaultInstance() {}
1✔
42

43
  /**
44
   * The globally activated processor has changed. This is always called on the UI thread.
45
   *
46
   * <p>Note that this method is not called if only the instance has changed.
47
   */
48
  default void changeProcessor(String instance, String processor) {}
×
49

50
  default void changeProcessorInfo(ProcessorInfo processor) {}
×
51

52
  /**
53
   * Actual mission time as reported by Yamcs Server. If no time is defined (for example when not
54
   * connected), listeners will receive null
55
   */
56
  default void updateTime(Instant time) {}
×
57

58
  default void updateClearance(boolean enabled, SignificanceLevelType level) {}
×
59

60
  default void updateLink(String link) {}
×
61
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc