Class VideoSendComponent

java.lang.Object
edu.tufts.hrilab.diarc.DiarcComponent
edu.tufts.hrilab.vision.VideoSendComponent

public class VideoSendComponent extends DiarcComponent
  • Constructor Details

    • VideoSendComponent

      public VideoSendComponent()
      VideoSendComponent constructor.
  • Method Details

    • init

      protected void init()
      Description copied from class: DiarcComponent
      Perform any component initialization. This should not be used for setting local fields to default values as was the case in DIARC. This method is called after the constructor, and after parseArgs. Setting default values should be done in field declaration or in the constructor.
      Overrides:
      init in class DiarcComponent
    • executionLoop

      protected void executionLoop()
      Description copied from class: DiarcComponent
      This is where any code that needs to be called repeatedly in a dedicated thread should live. It is not called by default and you must set shouldRunExecutionLoop to true in your constructor.
      Overrides:
      executionLoop in class DiarcComponent
    • additionalUsageInfo

      protected List<org.apache.commons.cli.Option> additionalUsageInfo()
      Description copied from class: DiarcComponent
      Command line options available in sub-class. This should be paired with a parseArgs implementation.
      Overrides:
      additionalUsageInfo in class DiarcComponent
      Returns:
    • parseArgs

      protected void parseArgs(org.apache.commons.cli.CommandLine cmdLine)
      Parse additional command-line arguments
      Overrides:
      parseArgs in class DiarcComponent
    • getFrame

      public byte[] getFrame()
      An example of a remote call that fetches data from the server. Note that this remote call is used both by other servers and the server visualization -- e.g., there is no special interface that needs to be implemented for GUI-related methods.
      Returns:
      server name, followed by an incrementing counter (initially seeded to a random value, so that the output of the two servers is different)
    • getImageSize

      public Dimension getImageSize()
    • localshutdown

      protected void localshutdown()
      Implements the local shutdown mechanism that derived classes need to implement to cleanly shutdown