add FluidDataSetQuery

nix
Gerard 6 years ago
parent bb5efd3c67
commit 148ca0ac10

@ -0,0 +1,48 @@
FluidDataSetQuery : FluidManipulationClient {
*new {|server|
var uid = UniqueID.next;
^super.new(server,uid)!?{|inst|inst.init(uid);inst}
}
init {|uid|
id = uid;
}
addColumn{|column, action|
this.prSendMsg(\addColumn, [column], action);
}
addRange{|start, count, action|
this.prSendMsg(\addRange, [start, count], action);
}
filter{|column, condition, value, action|
this.prSendMsg(\filter, [column, condition.asSymbol, value], action);
}
and{|column, condition, value, action|
this.prSendMsg(\and, [column, condition, value], action);
}
or{|column, condition, value, action|
this.prSendMsg(\or, [column, condition, value], action);
}
reset{|action|
this.prSendMsg(\reset, [], action);
}
limit{|rows, action|
this.prSendMsg(\limit, [rows], action);
}
transform{|sourceDataset, destDataset, action|
this.prSendMsg(\transform,[sourceDataset.asSymbol, destDataset.asSymbol],action);
}
}

@ -2,6 +2,7 @@
// A tool from the FluCoMa project, funded by the European Research Council (ERC) under the European Unions Horizon 2020 research and innovation programme (grant agreement No 725899) // A tool from the FluCoMa project, funded by the European Research Council (ERC) under the European Unions Horizon 2020 research and innovation programme (grant agreement No 725899)
#include <clients/nrt/DataSetClient.hpp> #include <clients/nrt/DataSetClient.hpp>
#include <clients/nrt/DataSetQueryClient.hpp>
#include <clients/nrt/LabelSetClient.hpp> #include <clients/nrt/LabelSetClient.hpp>
#include <clients/nrt/KDTreeClient.hpp> #include <clients/nrt/KDTreeClient.hpp>
#include <clients/nrt/KMeansClient.hpp> #include <clients/nrt/KMeansClient.hpp>
@ -21,6 +22,7 @@ PluginLoad(FluidSTFTUGen)
ft = inTable; ft = inTable;
using namespace fluid::client; using namespace fluid::client;
makeSCWrapper<NRTThreadedDataSetClient>("FluidDataSet",ft); makeSCWrapper<NRTThreadedDataSetClient>("FluidDataSet",ft);
makeSCWrapper<NRTThreadedDataSetQueryClient>("FluidDataSetQuery",ft);
makeSCWrapper<NRTThreadedLabelSetClient>("FluidLabelSet",ft); makeSCWrapper<NRTThreadedLabelSetClient>("FluidLabelSet",ft);
makeSCWrapper<NRTThreadedKDTreeClient>("FluidKDTree",ft); makeSCWrapper<NRTThreadedKDTreeClient>("FluidKDTree",ft);
makeSCWrapper<NRTThreadedKMeansClient>("FluidKMeans",ft); makeSCWrapper<NRTThreadedKMeansClient>("FluidKMeans",ft);

Loading…
Cancel
Save