Java Developer Guide
dotJava Interfaces
Java Classes
Java Object Functions
Back to User Guide



dot.Java Interfaces
dotJava Interfaces
1.The interface of 'Java class for action' is ci.CIAction.java
, as follows:
   package ci;
   public interface CIAction {
      public void startAction(CrInstrument instrument,String actionCode,CIDataClass dc,String parameters[]);
      public void onExit(int type);
  }

2.The interface of 'Java class for checking data' is ci.CIChkDataClass.java, as follows:
   package ci;
   public interface CIChkDataClass {
        //The input data format is in hex mode, ex: 'E5 F6 45 65'.
        public boolean chkData(String data);
   }

3.The interface of 'Java class for sending command' is ci.CIDataGenerator.java, as follows:
   package ci;
   public interface CIDataGenerator {
      public byte[] getData();
   }

4.The interface of 'Java class for transforming data value' is ci.CITransferClass.java.
   package ci;
   public interface CITransferClass {
       public double getValue(double value);
   }


5.The interface of  'Java class for welcome panel' is y.ylib.WelcomePanel.java, as follows:
   package y.ylib;
   public interface WelcomePanel {
      public void setVisibleOff();
      public void setVisibleOn(int arg0, int arg1, String[] arg2);
      public void setValue(int arg0);
      public void setEstimatedTime(int arg0);
  }


dot.Java Classes
dotinfinity.common.Obj.java::
package infinity.common;
import java.io.Serializable;
public class Obj implements Serializable{
    public String c;
    public String o_id;
    public Object o;
    public Obj(String c,Object o){
        this.c=c;
        this.o_id=(System.currentTimeMillis()+"."+(int)(Math.random()*10000));
        this.o=o;
    }
    public Obj(String o_id,String c,Object o){
        this.c=c;
        this.o_id=o_id;
        this.o=o;
    }
}



dot.Java Object Functions
dotci.CrInstrument instrument, examples of use::
1.instrument.doAction(String actionid,String dataSource,String data,infinity.common.Obj obj); [return: boolean]
   ex: instrument.doAtion("AC0009","","xyz",null);
2.instrument.doActions(String actionids,String dataSource,String data,infinity.common.Obj obj); [return: boolean]
   actionids is in csv format.
   ex: instrument.doAtions("AC0001,AC0003","","",null);
3.instrument.isVisible(); [return: boolean]
4.instrument.log(String logdata); [return: void]
5.instrument.loginAdmin(); [return: boolean]
6.instrument.loginUser(); [return: boolean]

7.instrument.isNumeric(String data); [return: boolean]
8.instrument.setResult(String actionid, boolean ok); [return: void]
9.instrument.setVisible(boolean visible);   [return: void]


dotwsn.WSN instrument.wn, examples of use:
1.instrument.wn.props.getProperty(String key); [return: String]

2.instrument.wn.IntTo2ByteArray(int value); [return: byte[] ]
3.instrument.wn.IntTo4ByteArray(long value); [return: byte[] ]
4.instrument.wn.isVisible(); [return: boolean]
5.instrument.wn.props.setProperty(String key, String value); [return: Object]
6.instrument.wn.setVisible(boolean vidible); [return: void]

dotinfinity.client.Weber instrument.wn.w, examples of use:
1.instrument.wn.w.de(String data); [return: String]
2.instrument.wn.w.de2(String data); [return: String]
3.instrument.wn.w.en(String data); [return: String]
4.instrument.wn.w.en2(String data); [return: String]
5.
nstrument.wn.w.getAHVar(String key); [return: String]
6.instrument.wn.w.log(String data); [return: void]
7.nstrument.wn.w.setAHVar(String key, String value); [return: void]

dotinfinity.client.AbstractAP instrument.wn.w.ap, examples of use:
1.instrument.wn.w.ap.log(String data); [return: void]
2.
insrument.wn.w.ap.urlfiletodisk(String netfile,String localfile); [return: boolean]
3.instrument.wn.w.ap.urltomultiline(String netfile); [return: String]

doty.ylib.OpenURL instrument.openURL, example of use:
1.instrument.openURL.open(String url); [return: void]
    ex: instrument.openURL.open("http://cloud-rain.com");


              Any other questions, please post it on cr-Instrument forum.