Package com.marswars.dashboard
Record Class DashboardBridge.Config
java.lang.Object
java.lang.Record
com.marswars.dashboard.DashboardBridge.Config
- Record Components:
toRobotTable- NT table path the dashboard writes to and this bridge reads from (e.g. "/ReefControls/ToRobot")toDashboardTable- NT table path this bridge writes to and the dashboard reads fromwebServerPort- port to serve the static dashboard web app onwebServerDeploySubdir- subdirectory of the robot project's deploy directory containing the dashboard's HTML/CSS/JS
- Enclosing class:
- DashboardBridge
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thetoDashboardTablerecord component.Returns the value of thetoRobotTablerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewebServerDeploySubdirrecord component.intReturns the value of thewebServerPortrecord component.
-
Constructor Details
-
Config
public Config(String toRobotTable, String toDashboardTable, int webServerPort, String webServerDeploySubdir) Creates an instance of aConfigrecord class.- Parameters:
toRobotTable- the value for thetoRobotTablerecord componenttoDashboardTable- the value for thetoDashboardTablerecord componentwebServerPort- the value for thewebServerPortrecord componentwebServerDeploySubdir- the value for thewebServerDeploySubdirrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
toRobotTable
Returns the value of thetoRobotTablerecord component.- Returns:
- the value of the
toRobotTablerecord component
-
toDashboardTable
Returns the value of thetoDashboardTablerecord component.- Returns:
- the value of the
toDashboardTablerecord component
-
webServerPort
public int webServerPort()Returns the value of thewebServerPortrecord component.- Returns:
- the value of the
webServerPortrecord component
-
webServerDeploySubdir
Returns the value of thewebServerDeploySubdirrecord component.- Returns:
- the value of the
webServerDeploySubdirrecord component
-