00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef HxCorbaVxStructure_idl
00010 #define HxCorbaVxStructure_idl
00011
00012 #include "HxCorbaVxSegmentation.idl"
00013
00014 module HxCorba
00015 {
00016
00018 struct VxStructureEval
00019 {
00020 long correct;
00021 long missed;
00022 long falseAlarm;
00023 };
00024
00025
00027 interface VxStructure
00028 {
00029 const string BLOCKS = "blocks";
00030 const string SHOTS = "shots";
00031 const string EFFECTS = "effects";
00032 const string SCENES = "scenes";
00033
00034 StringSeq getLevelNames();
00035 boolean exist(in string levelId);
00036 long size(in string levelId);
00037
00038 boolean push(in string level, in VxSegmentation seg);
00039 boolean pushFromFile(in string level, in string filename);
00040
00041 VxSegmentation get(in string levelId);
00042 VxSegment getSegment(in string levelId, in long index);
00043 VxSegment mapsToSegment(in string levelId, in long timeSpan);
00044
00045 VxSegmentation getFromInterval(in string levelId, in VxTimeSpan timeSpan,
00046 in boolean complete);
00047 VxSegmentation getWhereInt(in string levelId, in string strType,
00048 in long val);
00049 VxSegmentation getWhereString(in string levelId, in string strType,
00050 in string val);
00051
00052 VxSegmentation getShots();
00053 VxSegmentation getEffects();
00054
00055 long mapsToIndex(in string levelId, in VxTimeSpan timeSpan);
00056 long mapsToIndexInt(in string levelId, in long timeSpan);
00057
00058 LongSeq getSegmentBoundaries(in string levelId,
00059 in VxTimeSpan timeSpan);
00060
00061 boolean isContinuous(in string levelId);
00062 boolean isSequential(in string levelId);
00063 boolean isParentOf(in string levelId1, in string levelId2);
00064 boolean isChildOf(in string levelId1, in string levelId2);
00065
00066 VxStructureEval compare(in string levelId, in VxSegmentation foundTruth);
00067 };
00068
00069
00071 interface VxStructureFactory
00072 {
00073 VxStructure makeVxStructure(in string base, in StringSeq extLevels);
00074 };
00075
00076 };
00077
00078 #endif //HxCorbaVxStructure_idl