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

WindhoverLabs / phoebus / #70

28 Aug 2023 12:40AM UTC coverage: 16.512% (-0.02%) from 16.527%
#70

push

lorenzo-gomez-windhover
-Add links viewer. Functional.
-TODO:Need to handle edge case when count drops.

17705 of 107226 relevant lines covered (16.51%)

0.17 hits per line

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

12.5
/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 {
×
14
    onYamcsDisconnected
×
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() {}
×
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