Capnostream { public boolean receiveDeviceIdSoftwareVersion(String softwareVersion, Date softwareReleaseDate, PulseOximetry pulseOximetry, String revision, String number) { log.debug("softwareVersion=" + softwareVersion + ", softwareReleaseDate=" + softwareReleaseDate + ", pulseOximetry=" + pulseOximetry + ", revision=" + revision + ", number=" + number); return true; } Capnostream(DeviceClock referenceClock, InputStream is, OutputStream os); boolean sendConfigurableSetup(SetupItem si, int value); boolean sendStartLongTrendConfigurableDownload(DataItem di); boolean sendConfigurePeriodicMessage(DataItem di, boolean messageData); boolean sendInquireNumericItem(NumericItem ni); boolean sendString(Command command, String s, boolean unicode, int max_length); boolean sendPatientId(String s); boolean sendPatientId(String s, boolean unicode); boolean sendHostMonitoringId(String s); boolean sendHostMonitoringId(String s, boolean unicode); boolean sendCommand(Object command); boolean sendCommand(Object command, byte[] payload, int length); boolean receiveCO2Wave(DeviceClock.Reading sampleTime, int messageNumber, double co2, int status); boolean receiveNumerics(DeviceClock.Reading sampleTime, int etCO2, int FiCO2, int respiratoryRate, int spo2, int pulserate, int slowStatus,
            int CO2ActiveAlarms, int SpO2ActiveAlarms, int noBreathPeriodSeconds, int etCo2AlarmHigh, int etCo2AlarmLow, int rrAlarmHigh,
            int rrAlarmLow, int fico2AlarmHigh, int spo2AlarmHigh, int spo2AlarmLow, int pulseAlarmHigh, int pulseAlarmLow, CO2Units units,
            int extendedCO2Status); boolean receiveNumerics(byte[] payload, int length); boolean receiveProtocolRevision(byte[] payload, int length); boolean receiveProtocolRevision(char revisionAsChar, int revisionAsInt); boolean receiveCO2Wave(byte[] payload, int length); boolean receiveMessage(Object response, byte[] payload, int length); boolean receiveConfigurableSetup(SetupItem fromCode, int i); boolean receiveDeviceIdSoftwareVersion(String softwareVersion, Date softwareReleaseDate,
                                                  PulseOximetry pulseOximetry, String revision,
            String number); boolean receiveDeviceIdSoftwareVersion(String s); boolean receiveDeviceIdSoftwareVersion(byte[] payload, int length); boolean receiveMessage(); boolean receive(); void addListener(CapnostreamListener listener); void removeListener(CapnostreamListener listener);  }
@Test public void testReceiveDeviceIdSoftwareVersion() { DeviceClock wall = new DeviceClock.WallClock(); Capnostream c = new Capnostream(wall, null, null); boolean isOk = c.receiveDeviceIdSoftwareVersion("V45.67 02/24/2008 B355987654 "); Assert.assertTrue("Failed to handle software revision", isOk); }