00001 package sctConf;
00002
00003
00011 public interface ConfigurationOperations extends ipc.freeableOperations
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 byte[] getFibreMappings (int partition, int crate, int rod) throws sctConf.ConfigurationException;
00031 void setFibreMapping (int partition, int crate, int rod, int channel, int tx, int rx0, int rx1) throws sctConf.ConfigurationException;
00032 sctConf.BOCChannelConfig getBOCConfig (int partition, int crate, int rod, int channel) throws sctConf.ConfigurationException;
00033 sctConf.BOCGlobalConfig getBOCGlobalConfig (int partition, int crate, int rod) throws sctConf.ConfigurationException;
00034 void printModuleConfig (sctConf.ABCDModule conf) throws sctConf.ConfigurationException;
00035 sctConf.MURType getMURType (int MUR) throws sctConf.ConfigurationException;
00036 int getFreeMurId () throws sctConf.ConfigurationException;
00037 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;
00038 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;
00039 void translateToSN (int MUR, int mod, org.omg.CORBA.StringHolder sn) throws sctConf.ConfigurationException;
00040 void translateToRMUR (int RMUR, int rmod, org.omg.CORBA.IntHolder MUR, org.omg.CORBA.IntHolder mod) throws sctConf.ConfigurationException;
00041 void translateToBarrel (int MUR, int mod, org.omg.CORBA.IntHolder barrel, org.omg.CORBA.IntHolder row, org.omg.CORBA.IntHolder number) throws sctConf.ConfigurationException;
00042 void translateToEndcap (int MUR, int mod, org.omg.CORBA.IntHolder disk, org.omg.CORBA.IntHolder ring, org.omg.CORBA.IntHolder number) throws sctConf.ConfigurationException;
00043 void translateToPowerSupply (int MUR, int mod, org.omg.CORBA.IntHolder partition, org.omg.CORBA.IntHolder crate, org.omg.CORBA.IntHolder channel) throws sctConf.ConfigurationException;
00044 void translateFromROD (int partition, int crate, int rod, int channel, org.omg.CORBA.IntHolder MUR, org.omg.CORBA.IntHolder mod) throws sctConf.ConfigurationException;
00045 void translateFromRROD (int partition, int crate, int rod, int channel, org.omg.CORBA.IntHolder MUR, org.omg.CORBA.IntHolder mod) throws sctConf.ConfigurationException;
00046 void translateFromSN (String sn, org.omg.CORBA.IntHolder MUR, org.omg.CORBA.IntHolder mod) throws sctConf.ConfigurationException;
00047 void translateFromRMUR (int MUR, int mod, org.omg.CORBA.IntHolder RMUR, org.omg.CORBA.IntHolder rmod) throws sctConf.ConfigurationException;
00048 void translateFromBarrel (int barrel, int row, int number, org.omg.CORBA.IntHolder MUR, org.omg.CORBA.IntHolder mod) throws sctConf.ConfigurationException;
00049 void translateFromEndcap (int disk, int ring, int number, org.omg.CORBA.IntHolder MUR, org.omg.CORBA.IntHolder mod) throws sctConf.ConfigurationException;
00050 void translateFromPowerSupply (int partition, int crate, int channel, org.omg.CORBA.IntHolder MUR, org.omg.CORBA.IntHolder mod) throws sctConf.ConfigurationException;
00051
00052
00053 void configureModuleFromStructure (String number, sctConf.ABCDModule mConf) throws sctConf.ConfigurationException;
00054 void configureModuleFromFile (String filename) throws sctConf.ConfigurationException;
00055 void configureROD (int partition, int crate, int rod, sctConf.RodConfig conf) throws sctConf.ConfigurationException;
00056 void configureTIM (int partition, int crate, sctConf.TimConfig conf) throws sctConf.ConfigurationException;
00057 void configureBOC (int partition, int crate, int rod, sctConf.BOCGlobalConfig conf) throws sctConf.ConfigurationException;
00058 void clearAll () throws sctConf.ConfigurationException;
00059 void namePartition (int partition, String name) throws sctConf.ConfigurationException;
00060 void mapRODMUR (int partition, int crate, int rod, int order, int number) throws sctConf.ConfigurationException;
00061 void unmapRODMUR (int MUR) throws sctConf.ConfigurationException;
00062 void mapBarrelMUR (int MUR, int barrel, int row, int position) throws sctConf.ConfigurationException;
00063 void unmapBarrelMUR (int MUR) throws sctConf.ConfigurationException;
00064 void mapEndcapMUR (int MUR, int disk, int quadrant, int position) throws sctConf.ConfigurationException;
00065 void unmapEndcapMUR (int MUR) throws sctConf.ConfigurationException;
00066 void mapPowerChannel (int MUR, int number, int partition, int crate, int channel) throws sctConf.ConfigurationException;
00067 void unmapPowerChannel (int MUR, int number) throws sctConf.ConfigurationException;
00068 void mapModuleMUR (int MUR, int order, int RMUR, int rorder, String sn) throws sctConf.ConfigurationException;
00069 void unmapModuleMUR (int MUR, int order) throws sctConf.ConfigurationException;
00070 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;
00071 void getMapRODMUR (int partition, int crate, int rod, int order, org.omg.CORBA.IntHolder MUR) throws sctConf.ConfigurationException;
00072 sctConf.MURType getMapMURPhysical (int MUR, org.omg.CORBA.IntHolder plane, org.omg.CORBA.IntHolder section, org.omg.CORBA.IntHolder position) throws sctConf.ConfigurationException;
00073 void swapMURNames (int MUR1, int MUR2) throws sctConf.ConfigurationException;
00074 void modifyDefaultPowerParam (String state, String name, String type, float value) throws sctConf.ConfigurationException;
00075 void modifyHVCardParam (int crate, int card, String name, String type, float value) throws sctConf.ConfigurationException;
00076 void modifyLVCardParam (int crate, int card, String name, String type, float value) throws sctConf.ConfigurationException;
00077 void modifyPowerParam (int MUR, int number, String state, String name, String type, float value) throws sctConf.ConfigurationException;
00078 void modifyPowerParamCC (int crate, int channel, String state, String name, String type, float value) throws sctConf.ConfigurationException;
00079 float getDefaultPowerParam (String state, String name, String type) throws sctConf.ConfigurationException;
00080 float getHVCardParam (int crate, int card, String name, String type) throws sctConf.ConfigurationException;
00081 float getLVCardParam (int crate, int card, String name, String type) throws sctConf.ConfigurationException;
00082 float getPowerParam (int MUR, int number, String state, String name, String type) throws sctConf.ConfigurationException;
00083 float getPowerParamCC (int crate, int channel, String state, String name, String type) throws sctConf.ConfigurationException;
00084 String[] listDefaultPowerParams () throws sctConf.ConfigurationException;
00085 float getCratePowerParam (int crate, String name) throws sctConf.ConfigurationException;
00086 String[] listDCSChannelParams () throws sctConf.ConfigurationException;
00087 String[] listDCSCardParams () throws sctConf.ConfigurationException;
00088 String[] listDCSCrateParams () throws sctConf.ConfigurationException;
00089 void configureBOCChannel (int MUR, int position, sctConf.BOCChannelConfig conf) throws sctConf.ConfigurationException;
00090 void loadConfiguration (String filename) throws sctConf.ConfigurationException;
00091 void saveConfiguration (String filename) throws sctConf.ConfigurationException;
00092 void saveModuleConfiguration (String sn, String filename) throws sctConf.ConfigurationException;
00093 String getModuleConfigurationString (String modsn, sctConf.ABCDModule config) throws sctConf.ConfigurationException;
00094 void writePowerSupplyConfiguration (String directory) throws sctConf.ConfigurationException;
00095 }