00001 package sctConf;
00002
00003
00011 public interface ConfigurationOperations extends ipc.servantOperations
00012 {
00013
00014
00015 int[] listPartitions () throws sctConf.ConfigurationException;
00016 int[] listCratesInPartition (int partition) throws sctConf.ConfigurationException;
00017 boolean isDummyCrate (int partition, int crate);
00018 int[] listRodsInCrate (int partition, int crate) throws sctConf.ConfigurationException;
00019 int[] listMURSInRod (int partition, int crate, int rod) throws sctConf.ConfigurationException;
00020 String[] listModulesInMUR (int partition, int MUR) throws sctConf.ConfigurationException;
00021 String[] listRModulesInMUR (int partition, int MUR) throws sctConf.ConfigurationException;
00022 String[] listAllModules () throws sctConf.ConfigurationException;
00023 String[] listUnusedModules () throws sctConf.ConfigurationException;
00024 sctConf.ABCDModule getModuleConfig (String mod) throws sctConf.ConfigurationException;
00025 short getModuleGroup (String mod) throws sctConf.ConfigurationException;
00026 void setModuleGroup (String mod, short group) throws sctConf.ConfigurationException;
00027 sctConf.RodConfig getRodConfig (int partition, int crate, int rod) throws sctConf.ConfigurationException;
00028 sctConf.SlaveConfig getDefaultSlaveConfig (byte type) throws sctConf.ConfigurationException;
00029 sctConf.TimConfig getTimConfig (int partition, int crate) throws sctConf.ConfigurationException;
00030
00031
00032 byte[] getFibreMappings (int partition, int crate, int rod) throws sctConf.ConfigurationException;
00033 void setFibreMapping (int partition, int crate, int rod, int channel, int tx, int rx0, int rx1) throws sctConf.ConfigurationException;
00034 sctConf.BOCChannelConfig getBOCConfig (int partition, int crate, int rod, int channel) throws sctConf.ConfigurationException;
00035 sctConf.BOCGlobalConfig getBOCGlobalConfig (int partition, int crate, int rod) throws sctConf.ConfigurationException;
00036 void printModuleConfig (sctConf.ABCDModule conf) throws sctConf.ConfigurationException;
00037 sctConf.MURType getMURType (int MUR) throws sctConf.ConfigurationException;
00038 int getFreeMurId () throws sctConf.ConfigurationException;
00039 void translateToROD (int MUR, int mod, org.omg.CORBA.IntHolder partition, org.omg.CORBA.IntHolder crate, org.omg.CORBA.IntHolder rod, org.omg.CORBA.IntHolder channel) throws sctConf.ConfigurationException;
00040 void translateToRROD (int MUR, int mod, org.omg.CORBA.IntHolder partition, org.omg.CORBA.IntHolder crate, org.omg.CORBA.IntHolder rod, org.omg.CORBA.IntHolder channel) throws sctConf.ConfigurationException;
00041 void translateToSN (int MUR, int mod, org.omg.CORBA.StringHolder sn) throws sctConf.ConfigurationException;
00042 void translateToRMUR (int RMUR, int rmod, org.omg.CORBA.IntHolder MUR, org.omg.CORBA.IntHolder mod) throws sctConf.ConfigurationException;
00043 void translateToBarrel (int MUR, int mod, org.omg.CORBA.IntHolder barrel, org.omg.CORBA.IntHolder row, org.omg.CORBA.IntHolder number) throws sctConf.ConfigurationException;
00044 void translateToEndcap (int MUR, int mod, org.omg.CORBA.IntHolder disk, org.omg.CORBA.IntHolder ring, org.omg.CORBA.IntHolder number) throws sctConf.ConfigurationException;
00045 void translateToPowerSupply (int MUR, int mod, org.omg.CORBA.IntHolder partition, org.omg.CORBA.IntHolder crate, org.omg.CORBA.IntHolder channel) throws sctConf.ConfigurationException;
00046 void translateFromROD (int partition, int crate, int rod, int channel, org.omg.CORBA.IntHolder MUR, org.omg.CORBA.IntHolder mod) throws sctConf.ConfigurationException;
00047 void translateFromRROD (int partition, int crate, int rod, int channel, org.omg.CORBA.IntHolder MUR, org.omg.CORBA.IntHolder mod) throws sctConf.ConfigurationException;
00048 void translateFromSN (String sn, org.omg.CORBA.IntHolder MUR, org.omg.CORBA.IntHolder mod) throws sctConf.ConfigurationException;
00049 void translateFromRMUR (int MUR, int mod, org.omg.CORBA.IntHolder RMUR, org.omg.CORBA.IntHolder rmod) throws sctConf.ConfigurationException;
00050 void translateFromBarrel (int barrel, int row, int number, org.omg.CORBA.IntHolder MUR, org.omg.CORBA.IntHolder mod) throws sctConf.ConfigurationException;
00051 void translateFromEndcap (int disk, int ring, int number, org.omg.CORBA.IntHolder MUR, org.omg.CORBA.IntHolder mod) throws sctConf.ConfigurationException;
00052 void translateFromPowerSupply (int partition, int crate, int channel, org.omg.CORBA.IntHolder MUR, org.omg.CORBA.IntHolder mod) throws sctConf.ConfigurationException;
00053
00054
00055 void configureModuleFromStructure (String number, sctConf.ABCDModule mConf) throws sctConf.ConfigurationException;
00056 void configureModuleFromFile (String filename) throws sctConf.ConfigurationException;
00057 void configureROD (int partition, int crate, int rod, sctConf.RodConfig conf) throws sctConf.ConfigurationException;
00058 void configureTIM (int partition, int crate, sctConf.TimConfig conf) throws sctConf.ConfigurationException;
00059 void configureBOC (int partition, int crate, int rod, sctConf.BOCGlobalConfig conf) throws sctConf.ConfigurationException;
00060 void clearAll () throws sctConf.ConfigurationException;
00061 void namePartition (int partition, String name) throws sctConf.ConfigurationException;
00062 void mapRODMUR (int partition, int crate, int rod, int order, int number) throws sctConf.ConfigurationException;
00063 void unmapRODMUR (int MUR) throws sctConf.ConfigurationException;
00064 void mapBarrelMUR (int MUR, int barrel, int row, int position) throws sctConf.ConfigurationException;
00065 void unmapBarrelMUR (int MUR) throws sctConf.ConfigurationException;
00066 void mapEndcapMUR (int MUR, int disk, int quadrant, int position) throws sctConf.ConfigurationException;
00067 void unmapEndcapMUR (int MUR) throws sctConf.ConfigurationException;
00068 void mapPowerChannel (int MUR, int number, int partition, int crate, int channel) throws sctConf.ConfigurationException;
00069 void unmapPowerChannel (int MUR, int number) throws sctConf.ConfigurationException;
00070 void mapModuleMUR (int MUR, int order, int RMUR, int rorder, String sn) throws sctConf.ConfigurationException;
00071 void unmapModuleMUR (int MUR, int order) throws sctConf.ConfigurationException;
00072 void getMapMURROD (int MUR, org.omg.CORBA.IntHolder partition, org.omg.CORBA.IntHolder crate, org.omg.CORBA.IntHolder rod, org.omg.CORBA.IntHolder order) throws sctConf.ConfigurationException;
00073 void getMapRODMUR (int partition, int crate, int rod, int order, org.omg.CORBA.IntHolder MUR) throws sctConf.ConfigurationException;
00074 sctConf.MURType getMapMURPhysical (int MUR, org.omg.CORBA.IntHolder plane, org.omg.CORBA.IntHolder section, org.omg.CORBA.IntHolder position) throws sctConf.ConfigurationException;
00075 void swapMURNames (int MUR1, int MUR2) throws sctConf.ConfigurationException;
00076 void modifyDefaultPowerParam (String state, String name, String type, float value) throws sctConf.ConfigurationException;
00077 void modifyHVCardParam (int crate, int card, String name, String type, float value) throws sctConf.ConfigurationException;
00078 void modifyLVCardParam (int crate, int card, String name, String type, float value) throws sctConf.ConfigurationException;
00079 void modifyPowerParam (int MUR, int number, String state, String name, String type, float value) throws sctConf.ConfigurationException;
00080 void modifyPowerParamCC (int crate, int channel, String state, String name, String type, float value) throws sctConf.ConfigurationException;
00081 float getDefaultPowerParam (String state, String name, String type) throws sctConf.ConfigurationException;
00082 float getHVCardParam (int crate, int card, String name, String type) throws sctConf.ConfigurationException;
00083
00090 float getLVCardParam (int crate, int card, String name, String type) throws sctConf.ConfigurationException;
00091
00099 float getPowerParam (int MUR, int number, String state, String name, String type) throws sctConf.ConfigurationException;
00100
00108 float getPowerParamCC (int crate, int channel, String state, String name, String type) throws sctConf.ConfigurationException;
00109 String[] listDefaultPowerParams () throws sctConf.ConfigurationException;
00110 String[] listDCSChannelParams () throws sctConf.ConfigurationException;
00111 String[] listDCSCardParams () throws sctConf.ConfigurationException;
00112 String[] listDCSCrateParams () throws sctConf.ConfigurationException;
00113 void configureBOCChannel (int MUR, int position, sctConf.BOCChannelConfig conf) throws sctConf.ConfigurationException;
00114 void loadConfiguration (String filename) throws sctConf.ConfigurationException;
00115 void saveConfiguration (String filename) throws sctConf.ConfigurationException;
00116 void saveModuleConfiguration (String sn, String filename) throws sctConf.ConfigurationException;
00117 String getModuleConfigurationString (String modsn, sctConf.ABCDModule config) throws sctConf.ConfigurationException;
00118 void writePowerSupplyConfiguration (String directory) throws sctConf.ConfigurationException;
00119 }