@Test public void testGetStopCounter() { this.config.setSampleCount( 1000 ); this.config.setRatio( 1.0 ); assertEquals( 1000, this.config.getStopCounter() ); this.config.setRatio( 0.5 ); assertEquals( 500, this.config.getStopCounter() ); this.config.setRatio( 0.1 ); assertEquals( 100, this.config.getStopCounter() ); this.config.setRatio( 0.0 ); assertEquals( 0, this.config.getStopCounter() ); }
public int getStopCounter() { return ( int )( getReadCounter() * getRatio() ); }
LogicSnifferConfig { public int getStopCounter() { return ( int )( getReadCounter() * getRatio() ); } }
LogicSnifferConfig { public int getStopCounter() { return ( int )( getReadCounter() * getRatio() ); } LogicSnifferConfig(); }
LogicSnifferConfig { public int getStopCounter() { return ( int )( getReadCounter() * getRatio() ); } LogicSnifferConfig(); int getChannelCount(); CaptureClockSource getClockSource(); int getClockspeed(); String getConnectionURI(); DeviceProfile getDeviceProfile(); int getDivider(); int getDividerClockspeed(); int getEnabledChannelsCount(); int getEnabledChannelsMask(); int getEnabledGroupCount(); int getGroupCount(); int getMaxTriggerStages(); int getOpenPortDelay(); double getRatio(); int getReadCounter(); int getRLEDataWidth(); int getSampleCount(); int getSampleRate(); int getStopCounter(); int getTriggerConfig( final int aStage ); int getTriggerMask( final int aStage ); int getTriggerValue( final int aStage ); boolean isAltNumberSchemeEnabled(); boolean isDoubleDataRateEnabled(); boolean isExternalClock(); boolean isFilterAvailable(); boolean isFilterEnabled(); boolean isGroupEnabled( final int aGroupNr ); boolean isInternalClock(); boolean isOpenPortDtr(); boolean isRleEnabled(); boolean isSamplesInReverseOrder(); boolean isTestModeEnabled(); boolean isTriggerEnabled(); void setAltNumberSchemeEnabled( final boolean aEnable ); void setClockSource( final CaptureClockSource aSource ); void setConnectionURI( final String aConnectionURI ); void setEnabledChannels( final int aMask ); void setFilterEnabled( final boolean aEnable ); void setParallelTrigger( final int aStage, final int aMask, final int aValue, final int aLevel,
      final int aDelay, final boolean aStartCapture ); void setRatio( final double aRatio ); void setRleEnabled( final boolean enable ); void setSampleCount( final int aCount ); void setSampleRate( final int aSampleRate ); void setSerialTrigger( final int aStage, final int aChannel, final int aMask, final int aValue,
      final int aLevel, final int aDelay, final boolean aStartCapture ); void setTestModeEnabled( final boolean enable ); void setTriggerEnabled( final boolean enable ); }
LogicSnifferConfig { public int getStopCounter() { return ( int )( getReadCounter() * getRatio() ); } LogicSnifferConfig(); int getChannelCount(); CaptureClockSource getClockSource(); int getClockspeed(); String getConnectionURI(); DeviceProfile getDeviceProfile(); int getDivider(); int getDividerClockspeed(); int getEnabledChannelsCount(); int getEnabledChannelsMask(); int getEnabledGroupCount(); int getGroupCount(); int getMaxTriggerStages(); int getOpenPortDelay(); double getRatio(); int getReadCounter(); int getRLEDataWidth(); int getSampleCount(); int getSampleRate(); int getStopCounter(); int getTriggerConfig( final int aStage ); int getTriggerMask( final int aStage ); int getTriggerValue( final int aStage ); boolean isAltNumberSchemeEnabled(); boolean isDoubleDataRateEnabled(); boolean isExternalClock(); boolean isFilterAvailable(); boolean isFilterEnabled(); boolean isGroupEnabled( final int aGroupNr ); boolean isInternalClock(); boolean isOpenPortDtr(); boolean isRleEnabled(); boolean isSamplesInReverseOrder(); boolean isTestModeEnabled(); boolean isTriggerEnabled(); void setAltNumberSchemeEnabled( final boolean aEnable ); void setClockSource( final CaptureClockSource aSource ); void setConnectionURI( final String aConnectionURI ); void setEnabledChannels( final int aMask ); void setFilterEnabled( final boolean aEnable ); void setParallelTrigger( final int aStage, final int aMask, final int aValue, final int aLevel,
      final int aDelay, final boolean aStartCapture ); void setRatio( final double aRatio ); void setRleEnabled( final boolean enable ); void setSampleCount( final int aCount ); void setSampleRate( final int aSampleRate ); void setSerialTrigger( final int aStage, final int aChannel, final int aMask, final int aValue,
      final int aLevel, final int aDelay, final boolean aStartCapture ); void setTestModeEnabled( final boolean enable ); void setTriggerEnabled( final boolean enable ); final static int TRIGGER_STAGES; final static int TRIGGER_CAPTURE; }