lib/elevator-engine/elevator-engine.js
function(config, level, floor, callback) {
    var floors = [];
    var fromIdentifier = level ? level.identifier : null;    
    var options = FloorSelectionOptions.createFromIdentifiers(fromIdentifier, floor);
             
    try{
        floors = FloorController.getFloors(config.floorsDir, options);
        return callback(null, floors, options); 
    } catch(error) {
        return callback(error);
    }
}
function(config, level, floor, callback) {
    var floors = [];
    var fromIdentifier = level ? level.identifier : null;    
    var options = FloorSelectionOptions.createFromIdentifiers(fromIdentifier, floor);
             
    try{
        floors = FloorController.getFloors(config.floorsDir, options);
        return callback(null, floors, options); 
    } catch(error) {
        return callback(error);
    }
}
function ( config , level , floor , callback ) { var floors = [ ] ; var fromIdentifier = level ? level . identifier : null ; var options = FloorSelectionOptions . createFromIdentifiers ( fromIdentifier , floor ) ; try { floors = FloorController . getFloors ( config . floorsDir , options ) ; return callback ( null , floors , options ) ; } catch ( error ) { return callback ( error ) ; } }
Get floors for selected destination
@param config
@param level
@param floor
@param callback(error, floors)
Get floors for selected destination