link start!
@@ -0,0 +1,109 @@
|
||||
package obix;
|
||||
|
||||
public interface IObj {
|
||||
Obj add(Obj obj);
|
||||
|
||||
Obj addAll(Obj[] objArr);
|
||||
|
||||
Obj get(String str);
|
||||
|
||||
boolean getBool();
|
||||
|
||||
String getDisplay();
|
||||
|
||||
String getDisplayName();
|
||||
|
||||
Uri getHref();
|
||||
|
||||
Uri getIcon();
|
||||
|
||||
long getInt();
|
||||
|
||||
Contract getIs();
|
||||
|
||||
String getName();
|
||||
|
||||
Uri getNormalizedHref();
|
||||
|
||||
Obj getParent();
|
||||
|
||||
double getReal();
|
||||
|
||||
Obj getRoot();
|
||||
|
||||
Status getStatus();
|
||||
|
||||
String getStr();
|
||||
|
||||
boolean isAbstime();
|
||||
|
||||
boolean isBool();
|
||||
|
||||
boolean isEnum();
|
||||
|
||||
boolean isErr();
|
||||
|
||||
boolean isFeed();
|
||||
|
||||
boolean isInt();
|
||||
|
||||
boolean isList();
|
||||
|
||||
boolean isNull();
|
||||
|
||||
boolean isOp();
|
||||
|
||||
boolean isReal();
|
||||
|
||||
boolean isRef();
|
||||
|
||||
boolean isReltime();
|
||||
|
||||
boolean isStr();
|
||||
|
||||
boolean isUri();
|
||||
|
||||
boolean isVal();
|
||||
|
||||
boolean isWritable();
|
||||
|
||||
Obj[] list();
|
||||
|
||||
void remove(Obj obj);
|
||||
|
||||
void removeThis();
|
||||
|
||||
void replace(Obj obj, Obj obj2);
|
||||
|
||||
void setBool(boolean z);
|
||||
|
||||
void setDisplay(String str);
|
||||
|
||||
void setDisplayName(String str);
|
||||
|
||||
void setHref(Uri uri);
|
||||
|
||||
void setIcon(Uri uri);
|
||||
|
||||
void setInt(long j);
|
||||
|
||||
void setIs(Contract contract);
|
||||
|
||||
void setNull(boolean z);
|
||||
|
||||
void setReal(double d);
|
||||
|
||||
void setStatus(Status status);
|
||||
|
||||
void setStr(String str);
|
||||
|
||||
void setWritable(boolean z);
|
||||
|
||||
void setWritable(boolean z, boolean z2);
|
||||
|
||||
int size();
|
||||
|
||||
String toDisplayName();
|
||||
|
||||
String toDisplayString();
|
||||
}
|
||||
@@ -0,0 +1,206 @@
|
||||
package obix.asm;
|
||||
|
||||
public interface OpCodes {
|
||||
public static final int AALOAD = 50;
|
||||
public static final int AASTORE = 83;
|
||||
public static final int ACONST_NULL = 1;
|
||||
public static final int ALOAD = 25;
|
||||
public static final int ALOAD_0 = 42;
|
||||
public static final int ALOAD_1 = 43;
|
||||
public static final int ALOAD_2 = 44;
|
||||
public static final int ALOAD_3 = 45;
|
||||
public static final int ANEWARRAY = 189;
|
||||
public static final int ARETURN = 176;
|
||||
public static final int ARRAYLENGTH = 190;
|
||||
public static final int ASTORE = 58;
|
||||
public static final int ASTORE_0 = 75;
|
||||
public static final int ASTORE_1 = 76;
|
||||
public static final int ASTORE_2 = 77;
|
||||
public static final int ASTORE_3 = 78;
|
||||
public static final int ATHROW = 191;
|
||||
public static final int BALOAD = 51;
|
||||
public static final int BASTORE = 84;
|
||||
public static final int BIPUSH = 16;
|
||||
public static final int CALOAD = 52;
|
||||
public static final int CASTORE = 85;
|
||||
public static final int CHECKCAST = 192;
|
||||
public static final int D2F = 144;
|
||||
public static final int D2I = 142;
|
||||
public static final int D2L = 143;
|
||||
public static final int DADD = 99;
|
||||
public static final int DALOAD = 49;
|
||||
public static final int DASTORE = 82;
|
||||
public static final int DCMPG = 152;
|
||||
public static final int DCMPL = 151;
|
||||
public static final int DCONST_0 = 14;
|
||||
public static final int DCONST_1 = 15;
|
||||
public static final int DDIV = 111;
|
||||
public static final int DLOAD = 24;
|
||||
public static final int DLOAD_0 = 38;
|
||||
public static final int DLOAD_1 = 39;
|
||||
public static final int DLOAD_2 = 40;
|
||||
public static final int DLOAD_3 = 41;
|
||||
public static final int DMUL = 107;
|
||||
public static final int DNEG = 119;
|
||||
public static final int DREM = 115;
|
||||
public static final int DRETURN = 175;
|
||||
public static final int DSTORE = 57;
|
||||
public static final int DSTORE_0 = 71;
|
||||
public static final int DSTORE_1 = 72;
|
||||
public static final int DSTORE_2 = 73;
|
||||
public static final int DSTORE_3 = 74;
|
||||
public static final int DSUB = 103;
|
||||
public static final int DUP = 89;
|
||||
public static final int DUP2 = 92;
|
||||
public static final int DUP2_X1 = 93;
|
||||
public static final int DUP2_X2 = 94;
|
||||
public static final int DUP_X1 = 90;
|
||||
public static final int DUP_X2 = 91;
|
||||
public static final int F2D = 141;
|
||||
public static final int F2I = 139;
|
||||
public static final int F2L = 140;
|
||||
public static final int FADD = 98;
|
||||
public static final int FALOAD = 48;
|
||||
public static final int FASTORE = 81;
|
||||
public static final int FCMPG = 150;
|
||||
public static final int FCMPL = 149;
|
||||
public static final int FCONST_0 = 11;
|
||||
public static final int FCONST_1 = 12;
|
||||
public static final int FCONST_2 = 13;
|
||||
public static final int FDIV = 110;
|
||||
public static final int FLOAD = 23;
|
||||
public static final int FLOAD_0 = 34;
|
||||
public static final int FLOAD_1 = 35;
|
||||
public static final int FLOAD_2 = 36;
|
||||
public static final int FLOAD_3 = 37;
|
||||
public static final int FMUL = 106;
|
||||
public static final int FNEG = 118;
|
||||
public static final int FREM = 114;
|
||||
public static final int FRETURN = 174;
|
||||
public static final int FSTORE = 56;
|
||||
public static final int FSTORE_0 = 67;
|
||||
public static final int FSTORE_1 = 68;
|
||||
public static final int FSTORE_2 = 69;
|
||||
public static final int FSTORE_3 = 70;
|
||||
public static final int FSUB = 102;
|
||||
public static final int GETFIELD = 180;
|
||||
public static final int GETSTATIC = 178;
|
||||
public static final int GOTO = 167;
|
||||
public static final int GOTO_W = 200;
|
||||
public static final int I2B = 145;
|
||||
public static final int I2C = 146;
|
||||
public static final int I2D = 135;
|
||||
public static final int I2F = 134;
|
||||
public static final int I2L = 133;
|
||||
public static final int I2S = 147;
|
||||
public static final int IADD = 96;
|
||||
public static final int IALOAD = 46;
|
||||
public static final int IAND = 126;
|
||||
public static final int IASTORE = 79;
|
||||
public static final int ICONST_0 = 3;
|
||||
public static final int ICONST_1 = 4;
|
||||
public static final int ICONST_2 = 5;
|
||||
public static final int ICONST_3 = 6;
|
||||
public static final int ICONST_4 = 7;
|
||||
public static final int ICONST_5 = 8;
|
||||
public static final int ICONST_M1 = 2;
|
||||
public static final int IDIV = 108;
|
||||
public static final int IFEQ = 153;
|
||||
public static final int IFGE = 156;
|
||||
public static final int IFGT = 157;
|
||||
public static final int IFLE = 158;
|
||||
public static final int IFLT = 155;
|
||||
public static final int IFNE = 154;
|
||||
public static final int IFNONNULL = 199;
|
||||
public static final int IFNULL = 198;
|
||||
public static final int IF_ACMPEQ = 165;
|
||||
public static final int IF_ACMPNU = 166;
|
||||
public static final int IF_ICMPEQ = 159;
|
||||
public static final int IF_ICMPGE = 162;
|
||||
public static final int IF_ICMPGT = 163;
|
||||
public static final int IF_ICMPLE = 164;
|
||||
public static final int IF_ICMPLT = 161;
|
||||
public static final int IF_ICMPNE = 160;
|
||||
public static final int IINC = 132;
|
||||
public static final int ILOAD = 21;
|
||||
public static final int ILOAD_0 = 26;
|
||||
public static final int ILOAD_1 = 27;
|
||||
public static final int ILOAD_2 = 28;
|
||||
public static final int ILOAD_3 = 29;
|
||||
public static final int IMUL = 104;
|
||||
public static final int INEG = 116;
|
||||
public static final int INSTANCEOF = 193;
|
||||
public static final int INVOKEINTERFACE = 185;
|
||||
public static final int INVOKESPECIAL = 183;
|
||||
public static final int INVOKESTATIC = 184;
|
||||
public static final int INVOKEVIRTUAL = 182;
|
||||
public static final int IOR = 128;
|
||||
public static final int IREM = 112;
|
||||
public static final int IRETURN = 172;
|
||||
public static final int ISHL = 120;
|
||||
public static final int ISHR = 122;
|
||||
public static final int ISTORE = 54;
|
||||
public static final int ISTORE_0 = 59;
|
||||
public static final int ISTORE_1 = 60;
|
||||
public static final int ISTORE_2 = 61;
|
||||
public static final int ISTORE_3 = 62;
|
||||
public static final int ISUB = 100;
|
||||
public static final int IUSHR = 124;
|
||||
public static final int IXOR = 130;
|
||||
public static final int JSR = 168;
|
||||
public static final int JSR_W = 201;
|
||||
public static final int L2D = 138;
|
||||
public static final int L2F = 137;
|
||||
public static final int L2I = 136;
|
||||
public static final int LADD = 97;
|
||||
public static final int LALOAD = 47;
|
||||
public static final int LAND = 127;
|
||||
public static final int LASTORE = 80;
|
||||
public static final int LCMP = 148;
|
||||
public static final int LCONST_0 = 9;
|
||||
public static final int LCONST_1 = 10;
|
||||
public static final int LDC = 18;
|
||||
public static final int LDC2_W = 20;
|
||||
public static final int LDC_W = 19;
|
||||
public static final int LDIV = 109;
|
||||
public static final int LLOAD = 22;
|
||||
public static final int LLOAD_0 = 30;
|
||||
public static final int LLOAD_1 = 31;
|
||||
public static final int LLOAD_2 = 32;
|
||||
public static final int LLOAD_3 = 33;
|
||||
public static final int LMUL = 105;
|
||||
public static final int LNEG = 117;
|
||||
public static final int LOOKUPSWITCH = 171;
|
||||
public static final int LOR = 129;
|
||||
public static final int LREM = 113;
|
||||
public static final int LRETURN = 173;
|
||||
public static final int LSHL = 121;
|
||||
public static final int LSHR = 123;
|
||||
public static final int LSTORE = 55;
|
||||
public static final int LSTORE_0 = 63;
|
||||
public static final int LSTORE_1 = 64;
|
||||
public static final int LSTORE_2 = 65;
|
||||
public static final int LSTORE_3 = 66;
|
||||
public static final int LSUB = 101;
|
||||
public static final int LUSHR = 125;
|
||||
public static final int LXOR = 131;
|
||||
public static final int MONITORENTER = 194;
|
||||
public static final int MONITOREXIT = 195;
|
||||
public static final int MULTIANEWARRAY = 197;
|
||||
public static final int NEW = 187;
|
||||
public static final int NEWARRAY = 188;
|
||||
public static final int NOP = 0;
|
||||
public static final int POP = 87;
|
||||
public static final int POP2 = 88;
|
||||
public static final int PUTFIELD = 181;
|
||||
public static final int PUTSTATIC = 179;
|
||||
public static final int RET = 169;
|
||||
public static final int RETURN = 177;
|
||||
public static final int SALOAD = 53;
|
||||
public static final int SASTORE = 86;
|
||||
public static final int SIPUSH = 17;
|
||||
public static final int SWAP = 95;
|
||||
public static final int TABLESWITCH = 170;
|
||||
public static final int WIDE = 196;
|
||||
public static final int XXX_UNUSED_XXX = 186;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.Abstime;
|
||||
import obix.IObj;
|
||||
import obix.Str;
|
||||
import obix.Uri;
|
||||
|
||||
public interface About extends IObj {
|
||||
Str obixVersion();
|
||||
|
||||
Str productName();
|
||||
|
||||
Uri productUrl();
|
||||
|
||||
Str productVersion();
|
||||
|
||||
Abstime serverBootTime();
|
||||
|
||||
Str serverName();
|
||||
|
||||
Abstime serverTime();
|
||||
|
||||
Str vendorName();
|
||||
|
||||
Uri vendorUrl();
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.Abstime;
|
||||
import obix.IObj;
|
||||
import obix.Op;
|
||||
import obix.Str;
|
||||
|
||||
public interface AckAlarm extends IObj, Alarm {
|
||||
public static final String ackContract = "<op name='ack' in='obix:AlarmAckIn' out='obix:AlarmAckOut'/>";
|
||||
public static final String ackTimestampContract = "<abstime name='ackTimestamp' val='1969-12-31T19:00:00.000-05:00' null='true'/>";
|
||||
public static final String ackUserContract = "<str name='ackUser' val='' null='true'/>";
|
||||
|
||||
Op ack();
|
||||
|
||||
Abstime ackTimestamp();
|
||||
|
||||
Str ackUser();
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
import obix.Str;
|
||||
|
||||
public interface AckAlarmIn extends IObj {
|
||||
public static final String ackUserContract = "<str name='ackUser' val='' null='true'/>";
|
||||
|
||||
Str ackUser();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
|
||||
public interface AckAlarmOut extends IObj {
|
||||
public static final String alarmContract = "<obj name='alarm' is='obix:AckAlarm obix:Alarm'/>";
|
||||
|
||||
AckAlarm alarm();
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.Abstime;
|
||||
import obix.IObj;
|
||||
import obix.Ref;
|
||||
|
||||
public interface Alarm extends IObj {
|
||||
Ref source();
|
||||
|
||||
Abstime timestamp();
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.Abstime;
|
||||
import obix.IObj;
|
||||
import obix.Int;
|
||||
|
||||
public interface AlarmFilter extends IObj {
|
||||
public static final String endContract = "<abstime name='end' val='1969-12-31T19:00:00.000-05:00' null='true'/>";
|
||||
public static final String limitContract = "<int name='limit' val='0' null='true'/>";
|
||||
public static final String startContract = "<abstime name='start' val='1969-12-31T19:00:00.000-05:00' null='true'/>";
|
||||
|
||||
Abstime end();
|
||||
|
||||
Int limit();
|
||||
|
||||
Abstime start();
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.Abstime;
|
||||
import obix.IObj;
|
||||
import obix.Int;
|
||||
import obix.List;
|
||||
|
||||
public interface AlarmQueryOut extends IObj {
|
||||
public static final String countContract = "<int name='count' val='0' min='0'/>";
|
||||
public static final String dataContract = "<list name='data' of='obix:Alarm'/>";
|
||||
public static final String endContract = "<abstime name='end' val='1969-12-31T19:00:00.000-05:00' null='true'/>";
|
||||
public static final String startContract = "<abstime name='start' val='1969-12-31T19:00:00.000-05:00' null='true'/>";
|
||||
|
||||
Int count();
|
||||
|
||||
List data();
|
||||
|
||||
Abstime end();
|
||||
|
||||
Abstime start();
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.Feed;
|
||||
import obix.IObj;
|
||||
import obix.Int;
|
||||
import obix.Op;
|
||||
|
||||
public interface AlarmSubject extends IObj {
|
||||
public static final String countContract = "<int name='count' val='0' min='0'/>";
|
||||
public static final String feedContract = "<feed name='feed' in='obix:AlarmFilter' of='obix:Alarm'/>";
|
||||
public static final String queryContract = "<op name='query' in='obix:AlarmFilter' out='obix:AlarmQueryOut'/>";
|
||||
|
||||
Int count();
|
||||
|
||||
Feed feed();
|
||||
|
||||
Op query();
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
|
||||
public interface BadUriErr extends IObj {
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
|
||||
public interface BatchIn extends IObj {
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
|
||||
public interface BatchOut extends IObj {
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
import obix.Int;
|
||||
|
||||
public interface Dimension extends IObj {
|
||||
Int A();
|
||||
|
||||
Int K();
|
||||
|
||||
Int cd();
|
||||
|
||||
Int kg();
|
||||
|
||||
Int m();
|
||||
|
||||
Int mol();
|
||||
|
||||
Int sec();
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.Abstime;
|
||||
import obix.Feed;
|
||||
import obix.IObj;
|
||||
import obix.Int;
|
||||
import obix.Op;
|
||||
|
||||
public interface History extends IObj {
|
||||
public static final String countContract = "<int name='count' val='0' min='0'/>";
|
||||
public static final String endContract = "<abstime name='end' val='1969-12-31T19:00:00.000-05:00' null='true'/>";
|
||||
public static final String feedContract = "<feed name='feed' in='obix:HistoryFilter' of='obix:HistoryRecord'/>";
|
||||
public static final String queryContract = "<op name='query' in='obix:HistoryFilter' out='obix:HistoryQueryOut'/>";
|
||||
public static final String rollupContract = "<op name='rollup' in='obix:HistoryRollupIn' out='obix:HistoryRollupOut'/>";
|
||||
public static final String startContract = "<abstime name='start' val='1969-12-31T19:00:00.000-05:00' null='true'/>";
|
||||
|
||||
Int count();
|
||||
|
||||
Abstime end();
|
||||
|
||||
Feed feed();
|
||||
|
||||
Op query();
|
||||
|
||||
Op rollup();
|
||||
|
||||
Abstime start();
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.Abstime;
|
||||
import obix.IObj;
|
||||
import obix.Int;
|
||||
|
||||
public interface HistoryFilter extends IObj {
|
||||
public static final String endContract = "<abstime name='end' val='1969-12-31T19:00:00.000-05:00' null='true'/>";
|
||||
public static final String limitContract = "<int name='limit' val='0' null='true'/>";
|
||||
public static final String startContract = "<abstime name='start' val='1969-12-31T19:00:00.000-05:00' null='true'/>";
|
||||
|
||||
Abstime end();
|
||||
|
||||
Int limit();
|
||||
|
||||
Abstime start();
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.Abstime;
|
||||
import obix.IObj;
|
||||
import obix.Int;
|
||||
import obix.List;
|
||||
|
||||
public interface HistoryQueryOut extends IObj {
|
||||
public static final String countContract = "<int name='count' val='0' min='0'/>";
|
||||
public static final String dataContract = "<list name='data' of='obix:HistoryRecord'/>";
|
||||
public static final String endContract = "<abstime name='end' val='1969-12-31T19:00:00.000-05:00' null='true'/>";
|
||||
public static final String startContract = "<abstime name='start' val='1969-12-31T19:00:00.000-05:00' null='true'/>";
|
||||
|
||||
Int count();
|
||||
|
||||
List data();
|
||||
|
||||
Abstime end();
|
||||
|
||||
Abstime start();
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.Abstime;
|
||||
import obix.IObj;
|
||||
import obix.Obj;
|
||||
|
||||
public interface HistoryRecord extends IObj {
|
||||
public static final String timestampContract = "<abstime name='timestamp' val='1969-12-31T19:00:00.000-05:00' null='true'/>";
|
||||
public static final String valueContract = "<obj name='value' null='true'/>";
|
||||
|
||||
Abstime timestamp();
|
||||
|
||||
Obj value();
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
import obix.Reltime;
|
||||
|
||||
public interface HistoryRollupIn extends IObj, HistoryFilter {
|
||||
Reltime interval();
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.Abstime;
|
||||
import obix.IObj;
|
||||
import obix.Int;
|
||||
import obix.List;
|
||||
|
||||
public interface HistoryRollupOut extends IObj {
|
||||
public static final String countContract = "<int name='count' val='0' min='0'/>";
|
||||
public static final String dataContract = "<list name='data' of='obix:HistoryRollupRecord'/>";
|
||||
public static final String endContract = "<abstime name='end' val='1969-12-31T19:00:00.000-05:00' null='true'/>";
|
||||
public static final String startContract = "<abstime name='start' val='1969-12-31T19:00:00.000-05:00' null='true'/>";
|
||||
|
||||
Int count();
|
||||
|
||||
List data();
|
||||
|
||||
Abstime end();
|
||||
|
||||
Abstime start();
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.Abstime;
|
||||
import obix.IObj;
|
||||
import obix.Int;
|
||||
import obix.Real;
|
||||
|
||||
public interface HistoryRollupRecord extends IObj {
|
||||
Real avg();
|
||||
|
||||
Int count();
|
||||
|
||||
Abstime end();
|
||||
|
||||
Real max();
|
||||
|
||||
Real min();
|
||||
|
||||
Abstime start();
|
||||
|
||||
Real sum();
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
import obix.Obj;
|
||||
|
||||
public interface Invoke extends IObj {
|
||||
Obj in();
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
import obix.Op;
|
||||
import obix.Ref;
|
||||
|
||||
public interface Lobby extends IObj {
|
||||
public static final String aboutContract = "<ref name='about' is='obix:About'/>";
|
||||
public static final String batchContract = "<op name='batch' in='obix:BatchIn' out='obix:BatchOut'/>";
|
||||
public static final String watchServiceContract = "<ref name='watchService' is='obix:WatchService'/>";
|
||||
|
||||
Ref about();
|
||||
|
||||
Op batch();
|
||||
|
||||
Ref watchService();
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
|
||||
public interface Month extends IObj {
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
|
||||
public interface Nil extends IObj {
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
|
||||
public interface PermissionErr extends IObj {
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
|
||||
public interface Point extends IObj {
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
import obix.Obj;
|
||||
|
||||
public interface PointAlarm extends IObj, Alarm {
|
||||
Obj alarmValue();
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
|
||||
public interface Range extends IObj {
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
|
||||
public interface Read extends IObj {
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.Abstime;
|
||||
import obix.IObj;
|
||||
|
||||
public interface StatefulAlarm extends IObj, Alarm {
|
||||
public static final String normalTimestampContract = "<abstime name='normalTimestamp' val='1969-12-31T19:00:00.000-05:00' null='true'/>";
|
||||
|
||||
Abstime normalTimestamp();
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
import obix.Real;
|
||||
import obix.Str;
|
||||
|
||||
public interface Unit extends IObj {
|
||||
public static final String dimensionContract = "<obj name='dimension' is='obix:Dimension'/>";
|
||||
public static final String scaleContract = "<real name='scale' val='1.0'/>";
|
||||
|
||||
Dimension dimension();
|
||||
|
||||
Real offset();
|
||||
|
||||
Real scale();
|
||||
|
||||
Str symbol();
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
|
||||
public interface UnsupportedErr extends IObj {
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
import obix.Op;
|
||||
import obix.Reltime;
|
||||
|
||||
public interface Watch extends IObj {
|
||||
public static final String addContract = "<op name='add' in='obix:WatchIn' out='obix:WatchOut'/>";
|
||||
public static final String leaseContract = "<reltime name='lease' val='PT0S' writable='true' min='PT0S'/>";
|
||||
public static final String pollChangesContract = "<op name='pollChanges' in='obix:obj' out='obix:WatchOut'/>";
|
||||
public static final String pollRefreshContract = "<op name='pollRefresh' in='obix:obj' out='obix:WatchOut'/>";
|
||||
public static final String removeContract = "<op name='remove' in='obix:WatchIn' out='obix:obj'/>";
|
||||
|
||||
Op add();
|
||||
|
||||
Op delete();
|
||||
|
||||
Reltime lease();
|
||||
|
||||
Op pollChanges();
|
||||
|
||||
Op pollRefresh();
|
||||
|
||||
Op remove();
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
import obix.List;
|
||||
|
||||
public interface WatchIn extends IObj {
|
||||
public static final String hrefsContract = "<list name='hrefs' of='obix:WatchInItem'/>";
|
||||
|
||||
List hrefs();
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
import obix.Obj;
|
||||
|
||||
public interface WatchInItem extends IObj {
|
||||
Obj in();
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
import obix.List;
|
||||
|
||||
public interface WatchOut extends IObj {
|
||||
List values();
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
import obix.Op;
|
||||
|
||||
public interface WatchService extends IObj {
|
||||
public static final String makeContract = "<op name='make' in='obix:Nil' out='obix:Watch'/>";
|
||||
|
||||
Op make();
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
|
||||
public interface Weekday extends IObj {
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
import obix.Op;
|
||||
|
||||
public interface WritablePoint extends IObj, Point {
|
||||
public static final String writePointContract = "<op name='writePoint' in='obix:WritePointIn' out='obix:Point'/>";
|
||||
|
||||
Op writePoint();
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
import obix.Obj;
|
||||
|
||||
public interface Write extends IObj {
|
||||
Obj in();
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package obix.contracts;
|
||||
|
||||
import obix.IObj;
|
||||
import obix.Obj;
|
||||
|
||||
public interface WritePointIn extends IObj {
|
||||
Obj value();
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
package obix.io;
|
||||
|
||||
public interface BinObix {
|
||||
public static final int ABSTIME = 32;
|
||||
public static final int ABSTIME_NS = 1;
|
||||
public static final int ABSTIME_SEC = 0;
|
||||
public static final int BOOL = 8;
|
||||
public static final int BOOL_FALSE = 0;
|
||||
public static final int BOOL_TRUE = 1;
|
||||
public static final int CHILDREN_END = 68;
|
||||
public static final int DATE = 40;
|
||||
public static final int DATE_YYMD = 0;
|
||||
public static final int DISPLAY = 44;
|
||||
public static final int DISPLAY_NAME = 40;
|
||||
public static final int ENUM = 24;
|
||||
public static final int ERR = 64;
|
||||
public static final int FEED = 56;
|
||||
public static final int HAS_CHILDREN = 4;
|
||||
public static final int HREF = 12;
|
||||
public static final int ICON = 36;
|
||||
public static final int IN = 24;
|
||||
public static final int INT = 12;
|
||||
public static final int INT_S4 = 2;
|
||||
public static final int INT_S8 = 3;
|
||||
public static final int INT_U1 = 0;
|
||||
public static final int INT_U2 = 1;
|
||||
public static final int IS = 16;
|
||||
public static final int LIST = 48;
|
||||
public static final int MAX = 56;
|
||||
public static final int MIN = 52;
|
||||
public static final int MORE = 128;
|
||||
public static final int NAME = 8;
|
||||
public static final int NULL = 32;
|
||||
public static final int OBJ = 4;
|
||||
public static final int OF = 20;
|
||||
public static final int OP = 52;
|
||||
public static final int OUT = 28;
|
||||
public static final int PRECISION = 64;
|
||||
public static final int RANGE = 68;
|
||||
public static final int REAL = 16;
|
||||
public static final int REAL_F4 = 0;
|
||||
public static final int REAL_F8 = 1;
|
||||
public static final int REF = 60;
|
||||
public static final int RELTIME = 36;
|
||||
public static final int RELTIME_NS = 1;
|
||||
public static final int RELTIME_SEC = 0;
|
||||
public static final int STATUS_0 = 76;
|
||||
public static final int STATUS_0_DISABLED = 0;
|
||||
public static final int STATUS_0_DOWN = 2;
|
||||
public static final int STATUS_0_FAULT = 1;
|
||||
public static final int STATUS_0_UNACKED_ALARM = 3;
|
||||
public static final int STATUS_1 = 80;
|
||||
public static final int STATUS_1_ALARM = 0;
|
||||
public static final int STATUS_1_OVERRIDDEN = 2;
|
||||
public static final int STATUS_1_UNACKED = 1;
|
||||
public static final int STR = 20;
|
||||
public static final int STR_PREV = 1;
|
||||
public static final int STR_UTF8 = 0;
|
||||
public static final int TIME = 44;
|
||||
public static final int TIME_NS = 1;
|
||||
public static final int TIME_SEC = 0;
|
||||
public static final int TZ = 72;
|
||||
public static final int UNIT = 60;
|
||||
public static final int URI = 28;
|
||||
public static final int WRITABLE = 48;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package obix.net;
|
||||
|
||||
import obix.Obj;
|
||||
|
||||
public interface WatchListener {
|
||||
void changed(Obj obj);
|
||||
|
||||
void closed(SessionWatch sessionWatch);
|
||||
}
|
||||
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 941 B |
|
After Width: | Height: | Size: 962 B |
|
After Width: | Height: | Size: 941 B |
|
After Width: | Height: | Size: 940 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 198 B |
|
After Width: | Height: | Size: 976 B |
|
After Width: | Height: | Size: 946 B |
|
After Width: | Height: | Size: 978 B |
|
After Width: | Height: | Size: 976 B |
|
After Width: | Height: | Size: 332 B |
|
After Width: | Height: | Size: 901 B |
|
After Width: | Height: | Size: 942 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 915 B |
|
After Width: | Height: | Size: 951 B |
|
After Width: | Height: | Size: 922 B |
|
After Width: | Height: | Size: 977 B |
|
After Width: | Height: | Size: 992 B |
|
After Width: | Height: | Size: 277 B |
|
After Width: | Height: | Size: 949 B |
|
After Width: | Height: | Size: 962 B |
|
After Width: | Height: | Size: 937 B |
|
After Width: | Height: | Size: 940 B |
|
After Width: | Height: | Size: 942 B |
|
After Width: | Height: | Size: 953 B |
|
After Width: | Height: | Size: 975 B |
|
After Width: | Height: | Size: 984 B |
|
After Width: | Height: | Size: 957 B |
|
After Width: | Height: | Size: 159 B |
|
After Width: | Height: | Size: 964 B |
|
After Width: | Height: | Size: 748 B |
|
After Width: | Height: | Size: 669 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 630 B |