• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java DataSourceBuilder类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.md2k.datakitapi.source.datasource.DataSourceBuilder的典型用法代码示例。如果您正苦于以下问题:Java DataSourceBuilder类的具体用法?Java DataSourceBuilder怎么用?Java DataSourceBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DataSourceBuilder类属于org.md2k.datakitapi.source.datasource包,在下文中一共展示了DataSourceBuilder类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: findDataSourceClient

import org.md2k.datakitapi.source.datasource.DataSourceBuilder; //导入依赖的package包/类
protected DataSourceClient findDataSourceClient(String platformType, String platformId, String dataSourceType) {
    PlatformBuilder platformBuilder = new PlatformBuilder().setType(platformType).setId(platformId);
    DataSourceBuilder dataSourceBuilder = new DataSourceBuilder();
    if (dataSourceType != null && dataSourceType.length() != 1)
        dataSourceBuilder.setType(dataSourceType);
    dataSourceBuilder.setPlatform(platformBuilder.build());
    ArrayList<DataSourceClient> dataSourceClientArrayList = null;
    try {
        dataSourceClientArrayList = dataKitAPI.find(dataSourceBuilder);
    } catch (DataKitException e) {
        LocalBroadcastManager.getInstance(context).sendBroadcast(new Intent(Constants.INTENT_STOP));
        return null;
    }
    if (dataSourceClientArrayList.size() != 1)
        return null;
    return dataSourceClientArrayList.get(0);
}
 
开发者ID:MD2Korg,项目名称:mCerebrum-StreamProcessor,代码行数:18,代码来源:DataKitManager.java


示例2: register

import org.md2k.datakitapi.source.datasource.DataSourceBuilder; //导入依赖的package包/类
public PendingResult<DataSourceClient> register(final DataSourceBuilder dataSourceBuilder) throws DataKitException {
    PendingResult<DataSourceClient> pendingResult = new PendingResult<DataSourceClient>() {
        @Override
        public DataSourceClient await() {
            try {
                registerData = null;
                lock();
                DataSource dataSource = prepareDataSource(dataSourceBuilder);
                Bundle bundle = new Bundle();
                bundle.putParcelable(DataSource.class.getSimpleName(), dataSource);
                prepareAndSend(bundle, MessageType.REGISTER);
                semaphoreReceive.tryAcquire(WAIT_TIME, TimeUnit.MILLISECONDS);
            } catch (Exception e) {
                registerData = null;
            } finally {
                unlock();
            }
            return registerData;
        }
    };
    return pendingResult;
}
 
开发者ID:MD2Korg,项目名称:mCerebrum-DataKitAPI,代码行数:23,代码来源:DataKitAPIExecute.java


示例3: find

import org.md2k.datakitapi.source.datasource.DataSourceBuilder; //导入依赖的package包/类
public PendingResult<ArrayList<DataSourceClient>> find(final DataSourceBuilder dataSourceBuilder) throws DataKitException {
    PendingResult<ArrayList<DataSourceClient>> pendingResult = new PendingResult<ArrayList<DataSourceClient>>() {
        @Override
        public ArrayList<DataSourceClient> await() {
            try {
                findData = null;
                lock();
                final DataSource dataSource = dataSourceBuilder.build();
                Bundle bundle = new Bundle();
                bundle.putParcelable(DataSource.class.getSimpleName(), dataSource);
                prepareAndSend(bundle, MessageType.FIND);
                semaphoreReceive.tryAcquire(WAIT_TIME, TimeUnit.MILLISECONDS);
            } catch (Exception e) {
                findData = null;
            } finally {
                unlock();
            }
            return findData;
        }
    };
    return pendingResult;
}
 
开发者ID:MD2Korg,项目名称:mCerebrum-DataKitAPI,代码行数:23,代码来源:DataKitAPIExecute.java


示例4: register

import org.md2k.datakitapi.source.datasource.DataSourceBuilder; //导入依赖的package包/类
public void register(DataSourceBuilder dataSourceBuilder, CallBack newCallBack) throws DataKitException {
    super.register(dataSourceBuilder, newCallBack);
    mSensorManager = (SensorManager) context.getSystemService(Context.SENSOR_SERVICE);
    Sensor mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE);
    switch (frequency) {
        case SENSOR_DELAY_UI:
            FILTER_DATA_MIN_TIME = 1000.0 / (16.0 + EPSILON_UI);
            mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI);
            break;
        case SENSOR_DELAY_GAME:
            FILTER_DATA_MIN_TIME = 1000.0 / (50.0 + EPSILON_GAME);
            mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_GAME);
            break;
        case SENSOR_DELAY_FASTEST:
            FILTER_DATA_MIN_TIME = 1000.0 / (100.0 + EPSILON_FASTEST);
            mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_FASTEST);
            break;
        case SENSOR_DELAY_NORMAL:
            FILTER_DATA_MIN_TIME = 1000.0 / (6.0 + EPSILON_NORMAL);
            mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_NORMAL);
            break;
    }
}
 
开发者ID:MD2Korg,项目名称:mCerebrum-PhoneSensor,代码行数:24,代码来源:Gyroscope.java


示例5: register

import org.md2k.datakitapi.source.datasource.DataSourceBuilder; //导入依赖的package包/类
@Override
public void register(DataSourceBuilder dataSourceBuilder, CallBack newCallBack) throws DataKitException {
    super.register(dataSourceBuilder, newCallBack);
    context.registerReceiver(br, new IntentFilter("android.location.PROVIDERS_CHANGED"));
    prepareObservable();
    updatableLocationSubscription = locationUpdatesObservable.subscribe(new Observer<Location>() {
        @Override
        public void onCompleted() {

        }

        @Override
        public void onError(Throwable e) {

        }

        @Override
        public void onNext(Location location) {
            saveData(location);
        }
    });
}
 
开发者ID:MD2Korg,项目名称:mCerebrum-PhoneSensor,代码行数:23,代码来源:LocationFused.java


示例6: register

import org.md2k.datakitapi.source.datasource.DataSourceBuilder; //导入依赖的package包/类
public void register(DataSourceBuilder dataSourceBuilder, CallBack newCallBack) throws DataKitException {
    super.register(dataSourceBuilder, newCallBack);
    mSensorManager = (SensorManager) context.getSystemService(Context.SENSOR_SERVICE);
    Sensor mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
    switch (frequency) {
        case SENSOR_DELAY_UI:
            FILTER_DATA_MIN_TIME = 1000.0 / (16.0 + EPSILON_UI);
            mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI);
            break;
        case SENSOR_DELAY_GAME:
            FILTER_DATA_MIN_TIME = 1000.0 / (50.0 + EPSILON_GAME);
            mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_GAME);

            break;
        case SENSOR_DELAY_FASTEST:
            FILTER_DATA_MIN_TIME = 1000.0 / (100.0 + EPSILON_FASTEST);
            mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_FASTEST);

            break;
        case SENSOR_DELAY_NORMAL:
            FILTER_DATA_MIN_TIME = 1000.0 / (6.0 + EPSILON_NORMAL);
            mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_NORMAL);
            break;
    }
}
 
开发者ID:MD2Korg,项目名称:mCerebrum-PhoneSensor,代码行数:26,代码来源:Accelerometer.java


示例7: register

import org.md2k.datakitapi.source.datasource.DataSourceBuilder; //导入依赖的package包/类
public void register(DataSourceBuilder dataSourceBuilder, CallBack newCallBack) throws DataKitException {
    super.register(dataSourceBuilder, newCallBack);
    mSensorManager = (SensorManager) context.getSystemService(Context.SENSOR_SERVICE);
    Sensor mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION);
    switch (frequency) {
        case SENSOR_DELAY_UI:
            FILTER_DATA_MIN_TIME = 1000.0 / (16.0 + EPSILON_UI);
            mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI);
            break;
        case SENSOR_DELAY_GAME:
            FILTER_DATA_MIN_TIME = 1000.0 / (50.0 + EPSILON_GAME);
            mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_GAME);
            break;
        case SENSOR_DELAY_FASTEST:
            FILTER_DATA_MIN_TIME = 1000.0 / (100.0 + EPSILON_FASTEST);
            mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_FASTEST);
            break;
        case SENSOR_DELAY_NORMAL:
            FILTER_DATA_MIN_TIME = 1000.0 / (6.0 + EPSILON_NORMAL);
            mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_NORMAL);
            break;
    }
}
 
开发者ID:MD2Korg,项目名称:mCerebrum-PhoneSensor,代码行数:24,代码来源:Compass.java


示例8: register

import org.md2k.datakitapi.source.datasource.DataSourceBuilder; //导入依赖的package包/类
public void register(DataSourceBuilder dataSourceBuilder, CallBack newCallBack) throws DataKitException {
    super.register(dataSourceBuilder, newCallBack);
    mSensorManager = (SensorManager) context.getSystemService(Context.SENSOR_SERVICE);
    Sensor mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LIGHT);
    switch (frequency) {
        case SENSOR_DELAY_UI:
            FILTER_DATA_MIN_TIME = 1000.0 / (16.0 + EPSILON_UI);
            mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI);
            break;
        case SENSOR_DELAY_GAME:
            FILTER_DATA_MIN_TIME = 1000.0 / (50.0 + EPSILON_GAME);
            mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_GAME);
            break;
        case SENSOR_DELAY_FASTEST:
            FILTER_DATA_MIN_TIME = 1000.0 / (100.0 + EPSILON_FASTEST);
            mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_FASTEST);
            break;
        case SENSOR_DELAY_NORMAL:
            FILTER_DATA_MIN_TIME = 1000.0 / (6.0 + EPSILON_NORMAL);
            mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_NORMAL);
            break;
    }
}
 
开发者ID:MD2Korg,项目名称:mCerebrum-PhoneSensor,代码行数:24,代码来源:AmbientLight.java


示例9: readWakeupTimeFromDataKit

import org.md2k.datakitapi.source.datasource.DataSourceBuilder; //导入依赖的package包/类
private void readWakeupTimeFromDataKit() {
    DataKitAPI dataKitAPI = DataKitAPI.getInstance(modelManager.getContext());
    wakeupOffset = -1;
    try {
        ArrayList<DataSourceClient> dataSourceClients = dataKitAPI.find(new DataSourceBuilder().setType(DataSourceType.WAKEUP));
        if (dataSourceClients.size() > 0) {
            ArrayList<DataType> dataTypes = dataKitAPI.query(dataSourceClients.get(0), 1);
            if (dataTypes.size() != 0) {
                DataTypeLong dataTypeLong = (DataTypeLong) dataTypes.get(0);
                wakeupOffset = dataTypeLong.getSample();
            }
        }
    } catch (Exception ignored) {

    }
}
 
开发者ID:MD2Korg,项目名称:mCerebrum-Study,代码行数:17,代码来源:DayStartEndInfoManager.java


示例10: readSleepTimeFromDataKit

import org.md2k.datakitapi.source.datasource.DataSourceBuilder; //导入依赖的package包/类
private void readSleepTimeFromDataKit() {
    DataKitAPI dataKitAPI = DataKitAPI.getInstance(modelManager.getContext());
    sleepOffset = -1;
    try {
        ArrayList<DataSourceClient> dataSourceClients = dataKitAPI.find(new DataSourceBuilder().setType(DataSourceType.SLEEP));
        if (dataSourceClients.size() > 0) {
            ArrayList<DataType> dataTypes = dataKitAPI.query(dataSourceClients.get(0), 1);
            if (dataTypes.size() != 0) {
                DataTypeLong dataTypeLong = (DataTypeLong) dataTypes.get(0);
                sleepOffset = dataTypeLong.getSample();
            }
        }
    } catch (DataKitException e) {
        LocalBroadcastManager.getInstance(modelManager.getContext()).sendBroadcast(new Intent(Constants.INTENT_RESTART));
    }
}
 
开发者ID:MD2Korg,项目名称:mCerebrum-Study,代码行数:17,代码来源:DayStartEndInfoManager.java


示例11: createDataSourceBuilderDayStart

import org.md2k.datakitapi.source.datasource.DataSourceBuilder; //导入依赖的package包/类
private DataSourceBuilder createDataSourceBuilderDayStart() {
    Platform platform = new PlatformBuilder().setType(PlatformType.PHONE).build();
    DataSourceBuilder dataSourceBuilder = new DataSourceBuilder().setType(DataSourceType.DAY_START).setPlatform(platform);
    dataSourceBuilder = dataSourceBuilder.setMetadata(METADATA.NAME, "Day Start");
    dataSourceBuilder = dataSourceBuilder.setMetadata(METADATA.DESCRIPTION, "Represents when day started");
    dataSourceBuilder = dataSourceBuilder.setMetadata(METADATA.DATA_TYPE, DataTypeLong.class.getName());
    ArrayList<HashMap<String, String>> dataDescriptors = new ArrayList<>();
    HashMap<String, String> dataDescriptor = new HashMap<>();
    dataDescriptor.put(METADATA.NAME, "Day Start");
    dataDescriptor.put(METADATA.MIN_VALUE, String.valueOf(0));
    dataDescriptor.put(METADATA.MAX_VALUE, String.valueOf(Long.MAX_VALUE));
    dataDescriptor.put(METADATA.UNIT, "millisecond");
    dataDescriptor.put(METADATA.DESCRIPTION, "Contains day start time in millisecond");
    dataDescriptor.put(METADATA.DATA_TYPE, long.class.getName());
    dataDescriptors.add(dataDescriptor);
    dataSourceBuilder = dataSourceBuilder.setDataDescriptors(dataDescriptors);
    return dataSourceBuilder;
}
 
开发者ID:MD2Korg,项目名称:mCerebrum-Study,代码行数:19,代码来源:DayStartEndInfoManager.java


示例12: createDataSourceBuilderDayEnd

import org.md2k.datakitapi.source.datasource.DataSourceBuilder; //导入依赖的package包/类
private DataSourceBuilder createDataSourceBuilderDayEnd() {
    Platform platform = new PlatformBuilder().setType(PlatformType.PHONE).build();
    DataSourceBuilder dataSourceBuilder = new DataSourceBuilder().setType(DataSourceType.DAY_END).setPlatform(platform);
    dataSourceBuilder = dataSourceBuilder.setMetadata(METADATA.NAME, "Day End");
    dataSourceBuilder = dataSourceBuilder.setMetadata(METADATA.DESCRIPTION, "Represents when day ended");
    dataSourceBuilder = dataSourceBuilder.setMetadata(METADATA.DATA_TYPE, DataTypeLong.class.getName());
    ArrayList<HashMap<String, String>> dataDescriptors = new ArrayList<>();
    HashMap<String, String> dataDescriptor = new HashMap<>();
    dataDescriptor.put(METADATA.NAME, "Day End");
    dataDescriptor.put(METADATA.MIN_VALUE, String.valueOf(0));
    dataDescriptor.put(METADATA.MAX_VALUE, String.valueOf(Long.MAX_VALUE));
    dataDescriptor.put(METADATA.UNIT, "millisecond");
    dataDescriptor.put(METADATA.DESCRIPTION, "Contains day end time in millisecond");
    dataDescriptor.put(METADATA.DATA_TYPE, long.class.getName());
    dataDescriptors.add(dataDescriptor);
    dataSourceBuilder = dataSourceBuilder.setDataDescriptors(dataDescriptors);
    return dataSourceBuilder;
}
 
开发者ID:MD2Korg,项目名称:mCerebrum-Study,代码行数:19,代码来源:DayStartEndInfoManager.java


示例13: run

import org.md2k.datakitapi.source.datasource.DataSourceBuilder; //导入依赖的package包/类
@Override
public void run() {
    try {
        Log.d(TAG, "runnableSubscribeResponse...run()");
        Application application = new ApplicationBuilder().setId("org.md2k.notificationmanager").build();
        DataSourceBuilder dataSourceBuilder = new DataSourceBuilder().setType(DataSourceType.NOTIFICATION_RESPONSE).setApplication(application);
        dataSourceClientResponses = DataKitAPI.getInstance(context).find(dataSourceBuilder);
        Log.d(TAG, "DataSourceClients...size=" + dataSourceClientResponses.size());
        if (dataSourceClientResponses.size() == 0) {
            handlerSubscribeResponse.postDelayed(this, 1000);
        } else {
            subscribeNotificationResponse();
            handlerSubscribeAck.post(runnableSubscribeAcknowledge);
        }
    } catch (DataKitException e) {
        LocalBroadcastManager.getInstance(context).sendBroadcast(new Intent(Constants.INTENT_RESTART));
    }
}
 
开发者ID:MD2Korg,项目名称:mCerebrum-Study,代码行数:19,代码来源:NotifierManager.java


示例14: createDataSourceBuilderStudyStart

import org.md2k.datakitapi.source.datasource.DataSourceBuilder; //导入依赖的package包/类
private DataSourceBuilder createDataSourceBuilderStudyStart() {
    Platform platform = new PlatformBuilder().setType(PlatformType.PHONE).build();
    DataSourceBuilder dataSourceBuilder = new DataSourceBuilder().setType(DataSourceType.STUDY_START).setPlatform(platform);
    dataSourceBuilder = dataSourceBuilder.setMetadata(METADATA.NAME, "Study Start");
    dataSourceBuilder = dataSourceBuilder.setMetadata(METADATA.DESCRIPTION, "Represents when study started");
    dataSourceBuilder = dataSourceBuilder.setMetadata(METADATA.DATA_TYPE, DataTypeLong.class.getName());
    ArrayList<HashMap<String, String>> dataDescriptors = new ArrayList<>();
    HashMap<String, String> dataDescriptor = new HashMap<>();
    dataDescriptor.put(METADATA.NAME, "Study Start");
    dataDescriptor.put(METADATA.MIN_VALUE, String.valueOf(0));
    dataDescriptor.put(METADATA.MAX_VALUE, String.valueOf(Long.MAX_VALUE));
    dataDescriptor.put(METADATA.UNIT, "millisecond");
    dataDescriptor.put(METADATA.DESCRIPTION, "Contains study start time in millisecond");
    dataDescriptor.put(METADATA.DATA_TYPE, long.class.getName());
    dataDescriptors.add(dataDescriptor);
    dataSourceBuilder = dataSourceBuilder.setDataDescriptors(dataDescriptors);
    return dataSourceBuilder;
}
 
开发者ID:MD2Korg,项目名称:mCerebrum-Study,代码行数:19,代码来源:StudyStartEndInfoManager.java


示例15: createDataSourceBuilderStudyEnd

import org.md2k.datakitapi.source.datasource.DataSourceBuilder; //导入依赖的package包/类
private DataSourceBuilder createDataSourceBuilderStudyEnd() {
    Platform platform = new PlatformBuilder().setType(PlatformType.PHONE).build();
    DataSourceBuilder dataSourceBuilder = new DataSourceBuilder().setType(DataSourceType.STUDY_END).setPlatform(platform);
    dataSourceBuilder = dataSourceBuilder.setMetadata(METADATA.NAME, "Study End");
    dataSourceBuilder = dataSourceBuilder.setMetadata(METADATA.DESCRIPTION, "Represents when study ended");
    dataSourceBuilder = dataSourceBuilder.setMetadata(METADATA.DATA_TYPE, DataTypeLong.class.getName());
    ArrayList<HashMap<String, String>> dataDescriptors = new ArrayList<>();
    HashMap<String, String> dataDescriptor = new HashMap<>();
    dataDescriptor.put(METADATA.NAME, "Study End");
    dataDescriptor.put(METADATA.MIN_VALUE, String.valueOf(0));
    dataDescriptor.put(METADATA.MAX_VALUE, String.valueOf(Long.MAX_VALUE));
    dataDescriptor.put(METADATA.UNIT, "millisecond");
    dataDescriptor.put(METADATA.DESCRIPTION, "Contains study end time in millisecond");
    dataDescriptor.put(METADATA.DATA_TYPE, long.class.getName());
    dataDescriptors.add(dataDescriptor);
    dataSourceBuilder = dataSourceBuilder.setDataDescriptors(dataDescriptors);
    return dataSourceBuilder;
}
 
开发者ID:MD2Korg,项目名称:mCerebrum-Study,代码行数:19,代码来源:StudyStartEndInfoManager.java


示例16: writeDataSourceToFile

import org.md2k.datakitapi.source.datasource.DataSourceBuilder; //导入依赖的package包/类
void writeDataSourceToFile() throws IOException {
    ArrayList<DataSource> dataSources = new ArrayList<>();
    if (microsoftBands == null) throw new NullPointerException();
    if (microsoftBands.size() == 0) throw new EmptyStackException();
    for (int i = 0; i < microsoftBands.size(); i++) {
        if(!microsoftBands.get(i).enabled) continue;
        Platform platform= microsoftBands.get(i).getPlatform();
        for(int j=0;j< microsoftBands.get(i).getSensors().size();j++) {
            if(!microsoftBands.get(i).getSensors().get(j).isEnabled()) continue;
            DataSourceBuilder dataSourceBuilder= microsoftBands.get(i).getSensors().get(j).createDataSourceBuilder(microsoftBands.get(i).getPlatform());
            if(dataSourceBuilder==null) continue;
            dataSourceBuilder=dataSourceBuilder.setPlatform(platform);
            DataSource dataSource = dataSourceBuilder.build();
            dataSources.add(dataSource);
        }
    }
    if(dataSources.size()==0) Toast.makeText(context,"Error: MicrosoftBand is not configured propoerly...",Toast.LENGTH_SHORT).show();
    Configuration.write(dataSources);
}
 
开发者ID:MD2Korg,项目名称:mCerebrum-MicrosoftBand,代码行数:20,代码来源:MicrosoftBands.java


示例17: run

import org.md2k.datakitapi.source.datasource.DataSourceBuilder; //导入依赖的package包/类
@Override
public void run() {
    Application application = new ApplicationBuilder().setId("org.md2k.notificationmanager").build();
    DataSourceBuilder dataSourceBuilder = new DataSourceBuilder().setType(DataSourceType.NOTIFICATION_REQUEST).setApplication(application);
    try {
        dataSourceClietNotificationRequests = DataKitAPI.getInstance(context).find(dataSourceBuilder);
        Log.d(TAG, "datasourceclient=" + dataSourceClietNotificationRequests.size());
        if (dataSourceClietNotificationRequests.size() == 0) {
            if (RERUN > 0) {
                RERUN--;
                handler.postDelayed(this, 1000);
            } else handler.postDelayed(this, 60000);
        } else {
            subscribe();
        }
    } catch (DataKitException e) {
        Intent intent = new Intent(Constants.INTENT_STOP);
        intent.putExtra("type", "NotificationManager.java...runnableSubscribe()");
        LocalBroadcastManager.getInstance(context).sendBroadcast(intent);
    }
}
 
开发者ID:MD2Korg,项目名称:mCerebrum-MicrosoftBand,代码行数:22,代码来源:NotificationManager.java


示例18: createDataSourceBuilder

import org.md2k.datakitapi.source.datasource.DataSourceBuilder; //导入依赖的package包/类
public DataSourceBuilder createDataSourceBuilder() {
    DataSourceBuilder dataSourceBuilder = super.createDataSourceBuilder();
    if (dataSourceBuilder == null) return null;
    dataSourceBuilder = dataSourceBuilder.setDataDescriptors(createDataDescriptor());
    dataSourceBuilder = dataSourceBuilder.setMetadata(METADATA.FREQUENCY, "0.0167 Hz");
    dataSourceBuilder = dataSourceBuilder.setMetadata(METADATA.NAME, "cStress Feature Vector");
    dataSourceBuilder = dataSourceBuilder.setMetadata(METADATA.DESCRIPTION, "Represents the 37 features used by the cStress algorithm");
    dataSourceBuilder = dataSourceBuilder.setMetadata(METADATA.DATA_TYPE, DataTypeDoubleArray.class.getName());
    return dataSourceBuilder;
}
 
开发者ID:MD2Korg,项目名称:mCerebrum-StreamProcessor,代码行数:11,代码来源:cStressFeatureVector.java


示例19: createDataSourceBuilder

import org.md2k.datakitapi.source.datasource.DataSourceBuilder; //导入依赖的package包/类
public DataSourceBuilder createDataSourceBuilder() {
    DataSourceBuilder dataSourceBuilder = super.createDataSourceBuilder();
    if (dataSourceBuilder == null) return null;
    dataSourceBuilder = dataSourceBuilder.setDataDescriptors(createDataDescriptor());
    dataSourceBuilder = dataSourceBuilder.setMetadata(METADATA.FREQUENCY, "0.0167 Hz");
    dataSourceBuilder = dataSourceBuilder.setMetadata(METADATA.NAME, "puffMarker Feature Vector");
    dataSourceBuilder = dataSourceBuilder.setMetadata(METADATA.DESCRIPTION, "Represents the 36 features used by the puffMarker algorithm");
    dataSourceBuilder = dataSourceBuilder.setMetadata(METADATA.DATA_TYPE, DataTypeDoubleArray.class.getName());
    return dataSourceBuilder;
}
 
开发者ID:MD2Korg,项目名称:mCerebrum-StreamProcessor,代码行数:11,代码来源:puffMarkerFeatureVector.java


示例20: createDataSourceBuilder

import org.md2k.datakitapi.source.datasource.DataSourceBuilder; //导入依赖的package包/类
public DataSourceBuilder createDataSourceBuilder() {
    DataSourceBuilder dataSourceBuilder = super.createDataSourceBuilder();
    if (dataSourceBuilder == null) return null;
    dataSourceBuilder = dataSourceBuilder.setDataDescriptors(createDataDescriptors());
    dataSourceBuilder = dataSourceBuilder.setMetadata(METADATA.NAME, "Smoking Episode");
    dataSourceBuilder = dataSourceBuilder.setMetadata(METADATA.DESCRIPTION, "Represents smoking episode");
    dataSourceBuilder = dataSourceBuilder.setMetadata(METADATA.DATA_TYPE, DataTypeDouble.class.getName());
    return dataSourceBuilder;
}
 
开发者ID:MD2Korg,项目名称:mCerebrum-StreamProcessor,代码行数:10,代码来源:SmokingEpisode.java



注:本文中的org.md2k.datakitapi.source.datasource.DataSourceBuilder类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ClassSource类代码示例发布时间:2022-05-23
下一篇:
Java TextEditorProvider类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap