Class SimCANSubNode

java.lang.Object
com.tccc.kos.ext.freestyle.sim.can.subnode.SimCANSubNode
Direct Known Subclasses:
SimCANPump

public abstract class SimCANSubNode extends Object
Base implementation of a subNode.
Version:
2023-12-18
  • Constructor Details

    • SimCANSubNode

      public SimCANSubNode(SimCANBoard board, int subNodeId)
      Create a new mock sub node with the specified board and CANOpen subNodeId.
      Parameters:
      board - the board the sub-node is associated with
      subNodeId - the subNodeId for this node
  • Method Details

    • getSim

      public CANSimulator getSim()
      Return the CANSimulator.
    • getNodeId

      public int getNodeId()
      Return the nodeId of the associated board
    • activate

      public void activate()
      Called when the associated board is activated.
    • reset

      public void reset()
      Called when the associated board is reset.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getBoard

      public SimCANBoard getBoard()
    • getSubNodeId

      public int getSubNodeId()
    • getRpdoId

      public Integer getRpdoId()
    • setRpdoId

      public void setRpdoId(Integer rpdoId)