How to use the setBoolean function from bindings

Find comprehensive JavaScript bindings.setBoolean code examples handpicked from public code repositorys.

53
54
55
56
57
58
59
60
61
62
var records = astlib.decodeAsterixBuffer('Eurocontrol-48:1.21', buffer);
var record = records[0];
astlib.setNumber(plot, ASTERIX.TIMEOFDAY, 3601);
astlib.setBoolean(plot, ASTERIX.MODE2_V, true);
astlib.setBoolean(plot, ASTERIX.MODE2_G, true);
astlib.setBoolean(plot, ASTERIX.MODE2_L, true);
astlib.setNumber(plot, ASTERIX.TRACK_DETECTION, 3);
astlib.setBoolean(plot, ASTERIX.TRACK_TEST, true);
astlib.setBoolean(plot, ASTERIX.TRACK_SIMULATED, true);
astlib.setNumber(plot, ASTERIX.TRACK_POSITION_RANGE, 10000.0);
fork icon4
star icon8
watch icon4

+ 39 other calls in file

75
76
77
78
79
80
81
82
83
    astlib.setNumber(record, TRACK_NUMBER, model.trackNumber);
    astlib.setString(record, AIRCRAFT_ADDRESS, '23FFAA');
    astlib.setString(record, AIRCRAFT_IDENTIFICATION, 'PAKON321');

    astlib.setBoolean(record, MODE3A_V, true);
    astlib.setBoolean(record, MODE3A_G, true);
    astlib.setBoolean(record, MODE3A_L, true);
    astlib.setNumber(record, MODE3A_VALUE, 7777);
}
fork icon4
star icon8
watch icon4

+ 29 other calls in file

131
132
133
134
135
136
137
138
139
});

it('Boolean', function() {
        var onoff = true;
        assert(astlib.hasItem(asterixRecord, ACAS_RESOLUTION_ARA42) == false);  
        astlib.setBoolean(asterixRecord, ACAS_RESOLUTION_ARA42, onoff);
        assert(astlib.hasItem(asterixRecord, ACAS_RESOLUTION_ARA42) == true);   
        assert(astlib.getBoolean(asterixRecord, ACAS_RESOLUTION_ARA42) == onoff);
});
fork icon4
star icon8
watch icon4

+ 62 other calls in file

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)