00001
00002
00003 #ifndef GMMSCORE_H
00004 #define GMMSCORE_H
00005
00006 #include "Node.h"
00007 #include "ObjectRef.h"
00008
00009 namespace FD {
00010
00011 class GMMScore : public Node {
00012
00013 protected:
00014
00016 int outputID;
00017
00019 int gmmInputID;
00020
00022 int framesInputID;
00023
00025 ObjectRef currentScore;
00026
00027 int processCount;
00028
00029 public:
00031 GMMScore(std::string nodeName, ParameterSet params);
00032
00034 virtual void request(int outputID, const ParameterSet &req)
00035 {
00036 inputs[gmmInputID].node->request(inputs[gmmInputID].outputID,req);
00037 inputs[framesInputID].node->request(inputs[framesInputID].outputID,req);
00038 }
00039
00042 virtual void initialize();
00043
00046 virtual void reset();
00047
00050 virtual ObjectRef getOutput(int output_id, int count);
00051
00052 protected:
00054 GMMScore() {throw new GeneralException("GMMScore copy constructor should not be called",__FILE__,__LINE__);}
00055
00056 };
00057
00058 }
00059
00060 #endif