mil.dod.th.ose.integration/src/mil/dod/th/ose/controller/integration/ObservationHelper.java
public static Observation createCbrneTriggerObservation()
    {
        List<CbrneTriggerEntry> entries = new ArrayList<>();
        CbrneModality modality = new CbrneModality(CbrneModalityEnum.SCATTERING, "goof");
        CountsPerTime counts = new CountsPerTime(312.1, 150.9);
        AlarmState alarm = new AlarmState(false, .90);
        CbrneTriggerEntry entry = new CbrneTriggerEntry(modality, counts, null, alarm);
        entries.add(entry);
        
        CbrneModality modality2 = new CbrneModality(CbrneModalityEnum.FLUORESCENCE, "glow");
        double scaledSignalLevel = .876;
        AlarmState alarm2 = new AlarmState(false, .70);
        CbrneTriggerEntry entry2 = new CbrneTriggerEntry(modality2, null, scaledSignalLevel, alarm2);
        entries.add(entry2);
        
        return ObservationHelper.createBaseObservation()
                .withUuid(UUID.fromString("328da040-85bb-11e2-9e96-0800200c9a78"))
                .withCbrneTrigger(new CbrneTrigger(entries));
    }
/**
     * Create a CBRNE trigger observation.
     */
Create a CBRNE trigger observation.
Create a CBRNE trigger observation .
public static Observation createCbrneTriggerObservation()
    {
        List<CbrneTriggerEntry> entries = new ArrayList<>();
        CbrneModality modality = new CbrneModality(CbrneModalityEnum.SCATTERING, "goof");
        CountsPerTime counts = new CountsPerTime(312.1, 150.9);
        AlarmState alarm = new AlarmState(false, .90);
        CbrneTriggerEntry entry = new CbrneTriggerEntry(modality, counts, null, alarm);
        entries.add(entry);
        CbrneModality modality2 = new CbrneModality(CbrneModalityEnum.FLUORESCENCE, "glow");
        double scaledSignalLevel = .876;
        AlarmState alarm2 = new AlarmState(false, .70);
        CbrneTriggerEntry entry2 = new CbrneTriggerEntry(modality2, null, scaledSignalLevel, alarm2);
        entries.add(entry2);
        return ObservationHelper.createBaseObservation()
                .withUuid(UUID.fromString("328da040-85bb-11e2-9e96-0800200c9a78"))
                .withCbrneTrigger(new CbrneTrigger(entries));
    }
public static Observation createCbrneTriggerObservation ( ) { List < CbrneTriggerEntry > entries = new ArrayList < > ( ) ; CbrneModality modality = new CbrneModality ( CbrneModalityEnum . SCATTERING , "goof" ) ; CountsPerTime counts = new CountsPerTime ( 312.1 , 150.9 ) ; AlarmState alarm = new AlarmState ( false , .90 ) ; CbrneTriggerEntry entry = new CbrneTriggerEntry ( modality , counts , null , alarm ) ; entries . add ( entry ) ; CbrneModality modality2 = new CbrneModality ( CbrneModalityEnum . FLUORESCENCE , "glow" ) ; double scaledSignalLevel = .876 ; AlarmState alarm2 = new AlarmState ( false , .70 ) ; CbrneTriggerEntry entry2 = new CbrneTriggerEntry ( modality2 , null , scaledSignalLevel , alarm2 ) ; entries . add ( entry2 ) ; return ObservationHelper . createBaseObservation ( ) . withUuid ( UUID . fromString ( "328da040-85bb-11e2-9e96-0800200c9a78" ) ) . withCbrneTrigger ( new CbrneTrigger ( entries ) ) ; }
Create a CBRNE trigger observation.
Create a CBRNE trigger observation .