link start!
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
package javax.baja.bacnet;
|
||||
|
||||
public interface BacnetAlarmConst {
|
||||
public static final String BAC_ACK_REQUIRED = "bacnetAcksRequired";
|
||||
public static final String BAC_ACK_TIME = "ackTime";
|
||||
public static final String BAC_ALARM_VALUES = "listOfLifeSafetyAlarmValues";
|
||||
public static final String BAC_BUFFER_DEVICE = "bufferDevice";
|
||||
public static final String BAC_BUFFER_OBJECT = "bufferObject";
|
||||
public static final String BAC_BUFFER_PROPERTY = "bufferProperty";
|
||||
public static final String BAC_CHANGED_BITS = "changedBits";
|
||||
public static final String BAC_CHANGED_VALUE = "changedValue";
|
||||
public static final String BAC_COMMAND_VALUE = "commandValue";
|
||||
public static final String BAC_COMPLEX_EVENT_VALUE = "complexEventValue";
|
||||
public static final String BAC_CONFIRMED_FLAG = "confirmed";
|
||||
public static final String BAC_CURRENT_NOTIFICATION = "currentNotification";
|
||||
public static final String BAC_DEADBAND = "deadband";
|
||||
public static final String BAC_DEST_PROC_ID_PREFIX = "procIdFor";
|
||||
public static final String BAC_DEVICE_ID = "deviceId";
|
||||
public static final String BAC_ERROR_LIMIT = "errorLimit";
|
||||
public static final String BAC_ESUM_ACKED_TRANSITIONS = "ackedTransitions";
|
||||
public static final String BAC_ESUM_EVENT_ENABLE = "eventEnable";
|
||||
public static final String BAC_ESUM_EVENT_PRIORITIES = "eventPriorities";
|
||||
public static final String BAC_ESUM_EVENT_STATE = "eventState";
|
||||
public static final String BAC_ESUM_EVENT_TIMESTAMPS = "eventTimeStamps";
|
||||
public static final String BAC_EVENT_TYPE = "eventType";
|
||||
public static final String BAC_EVENT_VALUES = "eventValues";
|
||||
public static final String BAC_EXCEEDED_LIMIT = "exceededLimit";
|
||||
public static final String BAC_EXCEEDING_VALUE = "exceedingValue";
|
||||
public static final String BAC_EXTENDED_EVENT_TYPE = "extendedEventType";
|
||||
public static final String BAC_FAULT_PRIORITY = "faultPriority";
|
||||
public static final String BAC_FEEDBACK_VALUE = "feedbackValue";
|
||||
public static final String BAC_HIGH_LIMIT = "highLimit";
|
||||
public static final String BAC_LIFE_SAFETY_ALARM_VALUES = "listOfLifeSafetyAlarmValues";
|
||||
public static final String BAC_LOW_LIMIT = "lowLimit";
|
||||
public static final String BAC_NEW_MODE = "newMode";
|
||||
public static final String BAC_NEW_STATE = "newState";
|
||||
public static final String BAC_NEW_VALUE = "newValue";
|
||||
public static final String BAC_NORMAL_PRIORITY = "normalPriority";
|
||||
public static final String BAC_NOTIFICATION_CLASS = "NC";
|
||||
public static final String BAC_NOTIFY_LIST = "bacNotify";
|
||||
public static final String BAC_NOTIFY_TYPE = "notifyType";
|
||||
public static final String BAC_OBJECT_ID = "objectId";
|
||||
public static final String BAC_OFFNORMAL_ACKED = "offnormalAcked";
|
||||
public static final String BAC_OFFNORMAL_PRIORITY = "offnormalPriority";
|
||||
public static final String BAC_OFFNORMAL_TO_STATE = "offnormalToState";
|
||||
public static final String BAC_OPERATION_EXPECTED = "operationExpected";
|
||||
public static final String BAC_PARAMETERS = "parameters";
|
||||
public static final String BAC_PREVIOUS_NOTIFICATION = "previousNotification";
|
||||
public static final String BAC_PRIORITY = "priority";
|
||||
public static final String BAC_PROCESS_ID = "processId";
|
||||
public static final String BAC_REFERENCED_BITSTRING = "referencedBitstring";
|
||||
public static final String BAC_REFERENCE_VALUE = "referenceValue";
|
||||
public static final String BAC_SETPOINT_VALUE = "setpointValue";
|
||||
public static final String BAC_STALE_ACK = "staleAck";
|
||||
public static final String BAC_STATE_ACKED = "stateAcked";
|
||||
public static final String BAC_STATUS_FLAGS = "statusFlags";
|
||||
public static final String BAC_TIMESTAMP = "BacnetTimestamp";
|
||||
public static final String BAC_TIME_DELAY = "timeDelay";
|
||||
public static final String BAC_VENDOR_ID = "vendorId";
|
||||
public static final int TO_FAULT_BIT = 2;
|
||||
public static final int TO_FAULT_INDEX = 1;
|
||||
public static final int TO_NORMAL_BIT = 1;
|
||||
public static final int TO_NORMAL_INDEX = 2;
|
||||
public static final int TO_OFFNORMAL_BIT = 4;
|
||||
public static final int TO_OFFNORMAL_INDEX = 0;
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
package javax.baja.bacnet.io;
|
||||
|
||||
import javax.baja.bacnet.datatypes.BBacnetBitString;
|
||||
import javax.baja.bacnet.datatypes.BBacnetDate;
|
||||
import javax.baja.bacnet.datatypes.BBacnetNull;
|
||||
import javax.baja.bacnet.datatypes.BBacnetObjectIdentifier;
|
||||
import javax.baja.bacnet.datatypes.BBacnetOctetString;
|
||||
import javax.baja.bacnet.datatypes.BBacnetTime;
|
||||
import javax.baja.bacnet.datatypes.BBacnetUnsigned;
|
||||
import javax.baja.sys.BFloat;
|
||||
import javax.baja.sys.BInteger;
|
||||
|
||||
public interface AsnInput {
|
||||
public static final int END_OF_DATA = -1;
|
||||
|
||||
int available();
|
||||
|
||||
int getDataLength();
|
||||
|
||||
boolean isApplicationTag(int i);
|
||||
|
||||
boolean isClosingTag(int i);
|
||||
|
||||
boolean isContextTag(int i);
|
||||
|
||||
boolean isOpeningTag(int i);
|
||||
|
||||
boolean isValueTag(int i);
|
||||
|
||||
int peekApplicationTag() throws AsnException;
|
||||
|
||||
int peekTag() throws AsnException;
|
||||
|
||||
int read(byte[] bArr);
|
||||
|
||||
BBacnetOctetString readBacnetOctetString() throws AsnException;
|
||||
|
||||
BBacnetOctetString readBacnetOctetString(int i) throws AsnException;
|
||||
|
||||
BBacnetBitString readBitString() throws AsnException;
|
||||
|
||||
BBacnetBitString readBitString(int i) throws AsnException;
|
||||
|
||||
boolean readBoolean() throws AsnException;
|
||||
|
||||
boolean readBoolean(int i) throws AsnException;
|
||||
|
||||
String readCharacterString() throws AsnException;
|
||||
|
||||
String readCharacterString(int i) throws AsnException;
|
||||
|
||||
byte[] readContextTaggedData() throws AsnException;
|
||||
|
||||
BBacnetDate readDate() throws AsnException;
|
||||
|
||||
BBacnetDate readDate(int i) throws AsnException;
|
||||
|
||||
double readDouble() throws AsnException;
|
||||
|
||||
double readDouble(int i) throws AsnException;
|
||||
|
||||
byte[] readEncodedValue(int i) throws AsnException;
|
||||
|
||||
int readEnumerated() throws AsnException;
|
||||
|
||||
int readEnumerated(int i) throws AsnException;
|
||||
|
||||
BFloat readFloat() throws AsnException;
|
||||
|
||||
BFloat readFloat(int i) throws AsnException;
|
||||
|
||||
int readInteger() throws AsnException;
|
||||
|
||||
BBacnetNull readNull() throws AsnException;
|
||||
|
||||
BBacnetNull readNull(int i) throws AsnException;
|
||||
|
||||
BBacnetObjectIdentifier readObjectIdentifier() throws AsnException;
|
||||
|
||||
BBacnetObjectIdentifier readObjectIdentifier(int i) throws AsnException;
|
||||
|
||||
byte[] readOctetString() throws AsnException;
|
||||
|
||||
byte[] readOctetString(int i) throws AsnException;
|
||||
|
||||
float readReal() throws AsnException;
|
||||
|
||||
float readReal(int i) throws AsnException;
|
||||
|
||||
BInteger readSigned() throws AsnException;
|
||||
|
||||
BInteger readSigned(int i) throws AsnException;
|
||||
|
||||
int readSignedInteger() throws AsnException;
|
||||
|
||||
int readSignedInteger(int i) throws AsnException;
|
||||
|
||||
BBacnetTime readTime() throws AsnException;
|
||||
|
||||
BBacnetTime readTime(int i) throws AsnException;
|
||||
|
||||
BBacnetUnsigned readUnsigned() throws AsnException;
|
||||
|
||||
BBacnetUnsigned readUnsigned(int i) throws AsnException;
|
||||
|
||||
int readUnsignedInt() throws AsnException;
|
||||
|
||||
int readUnsignedInt(int i) throws AsnException;
|
||||
|
||||
long readUnsignedInteger() throws AsnException;
|
||||
|
||||
long readUnsignedInteger(int i) throws AsnException;
|
||||
|
||||
void skipClosingTag(int i) throws AsnException;
|
||||
|
||||
void skipOpeningTag(int i) throws AsnException;
|
||||
|
||||
int skipTag() throws AsnException;
|
||||
}
|
||||
@@ -0,0 +1,148 @@
|
||||
package javax.baja.bacnet.io;
|
||||
|
||||
import javax.baja.bacnet.datatypes.BBacnetBitString;
|
||||
import javax.baja.bacnet.datatypes.BBacnetDate;
|
||||
import javax.baja.bacnet.datatypes.BBacnetObjectIdentifier;
|
||||
import javax.baja.bacnet.datatypes.BBacnetOctetString;
|
||||
import javax.baja.bacnet.datatypes.BBacnetTime;
|
||||
import javax.baja.bacnet.datatypes.BBacnetUnsigned;
|
||||
import javax.baja.bacnet.enums.BCharacterSetEncoding;
|
||||
import javax.baja.sys.BAbsTime;
|
||||
import javax.baja.sys.BBoolean;
|
||||
import javax.baja.sys.BEnum;
|
||||
import javax.baja.sys.BInteger;
|
||||
import javax.baja.sys.BNumber;
|
||||
import javax.baja.sys.BString;
|
||||
import javax.baja.sys.BTime;
|
||||
|
||||
public interface AsnOutput {
|
||||
void write(byte[] bArr);
|
||||
|
||||
void writeBitString(int i, BBacnetBitString bBacnetBitString);
|
||||
|
||||
void writeBitString(int i, boolean[] zArr);
|
||||
|
||||
void writeBitString(BBacnetBitString bBacnetBitString);
|
||||
|
||||
void writeBitString(boolean[] zArr);
|
||||
|
||||
void writeBoolean(int i, BBoolean bBoolean);
|
||||
|
||||
void writeBoolean(int i, boolean z);
|
||||
|
||||
void writeBoolean(BBoolean bBoolean);
|
||||
|
||||
void writeBoolean(boolean z);
|
||||
|
||||
void writeCharacterString(int i, String str);
|
||||
|
||||
void writeCharacterString(int i, String str, BCharacterSetEncoding bCharacterSetEncoding);
|
||||
|
||||
void writeCharacterString(int i, BString bString);
|
||||
|
||||
void writeCharacterString(int i, BString bString, BCharacterSetEncoding bCharacterSetEncoding);
|
||||
|
||||
void writeCharacterString(String str);
|
||||
|
||||
void writeCharacterString(String str, BCharacterSetEncoding bCharacterSetEncoding);
|
||||
|
||||
void writeCharacterString(BString bString);
|
||||
|
||||
void writeCharacterString(BString bString, BCharacterSetEncoding bCharacterSetEncoding);
|
||||
|
||||
void writeClosingTag(int i);
|
||||
|
||||
void writeDate(int i, int i2, int i3, int i4);
|
||||
|
||||
void writeDate(int i, int i2, int i3, int i4, int i5);
|
||||
|
||||
void writeDate(int i, BBacnetDate bBacnetDate);
|
||||
|
||||
void writeDate(int i, BAbsTime bAbsTime);
|
||||
|
||||
void writeDate(BBacnetDate bBacnetDate);
|
||||
|
||||
void writeDate(BAbsTime bAbsTime);
|
||||
|
||||
void writeDouble(double d);
|
||||
|
||||
void writeDouble(int i, double d);
|
||||
|
||||
void writeDouble(int i, BNumber bNumber);
|
||||
|
||||
void writeDouble(BNumber bNumber);
|
||||
|
||||
void writeEncodedValue(int i, byte[] bArr);
|
||||
|
||||
void writeEncodedValue(byte[] bArr);
|
||||
|
||||
void writeEnumerated(int i);
|
||||
|
||||
void writeEnumerated(int i, int i2);
|
||||
|
||||
void writeEnumerated(int i, BEnum bEnum);
|
||||
|
||||
void writeEnumerated(BEnum bEnum);
|
||||
|
||||
void writeNull();
|
||||
|
||||
void writeNull(int i);
|
||||
|
||||
void writeObjectIdentifier(int i, int i2);
|
||||
|
||||
void writeObjectIdentifier(int i, int i2, int i3);
|
||||
|
||||
void writeObjectIdentifier(int i, BBacnetObjectIdentifier bBacnetObjectIdentifier);
|
||||
|
||||
void writeObjectIdentifier(BBacnetObjectIdentifier bBacnetObjectIdentifier);
|
||||
|
||||
void writeOctetString(int i, BBacnetOctetString bBacnetOctetString);
|
||||
|
||||
void writeOctetString(int i, byte[] bArr);
|
||||
|
||||
void writeOctetString(BBacnetOctetString bBacnetOctetString);
|
||||
|
||||
void writeOctetString(byte[] bArr);
|
||||
|
||||
void writeOpeningTag(int i);
|
||||
|
||||
void writeReal(double d);
|
||||
|
||||
void writeReal(int i, double d);
|
||||
|
||||
void writeReal(int i, BNumber bNumber);
|
||||
|
||||
void writeReal(BNumber bNumber);
|
||||
|
||||
void writeSignedInteger(int i);
|
||||
|
||||
void writeSignedInteger(int i, int i2);
|
||||
|
||||
void writeSignedInteger(int i, BInteger bInteger);
|
||||
|
||||
void writeSignedInteger(BInteger bInteger);
|
||||
|
||||
void writeTime(int i, int i2, int i3, int i4);
|
||||
|
||||
void writeTime(int i, int i2, int i3, int i4, int i5);
|
||||
|
||||
void writeTime(int i, BBacnetTime bBacnetTime);
|
||||
|
||||
void writeTime(int i, BAbsTime bAbsTime);
|
||||
|
||||
void writeTime(int i, BTime bTime);
|
||||
|
||||
void writeTime(BBacnetTime bBacnetTime);
|
||||
|
||||
void writeTime(BAbsTime bAbsTime);
|
||||
|
||||
void writeTime(BTime bTime);
|
||||
|
||||
void writeUnsigned(int i, BBacnetUnsigned bBacnetUnsigned);
|
||||
|
||||
void writeUnsigned(BBacnetUnsigned bBacnetUnsigned);
|
||||
|
||||
void writeUnsignedInteger(int i, long j);
|
||||
|
||||
void writeUnsignedInteger(long j);
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package javax.baja.bacnet.io;
|
||||
|
||||
public interface BacnetServiceListener {
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package javax.baja.bacnet.io;
|
||||
|
||||
public interface ChangeListError {
|
||||
public static final int ERROR_TYPE_TAG = 0;
|
||||
public static final int FIRST_FAILED_ELEMENT_NUMBER_TAG = 1;
|
||||
|
||||
long getFirstFailedElementNumber();
|
||||
|
||||
void readAsn(AsnInput asnInput) throws AsnException;
|
||||
|
||||
void writeAsn(AsnOutput asnOutput);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package javax.baja.bacnet.io;
|
||||
|
||||
public interface ErrorType {
|
||||
int getErrorClass();
|
||||
|
||||
int getErrorCode();
|
||||
|
||||
void readEncoded(AsnInput asnInput) throws AsnException;
|
||||
|
||||
void writeEncoded(AsnOutput asnOutput);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package javax.baja.bacnet.io;
|
||||
|
||||
import javax.baja.bacnet.datatypes.BBacnetAddress;
|
||||
import javax.baja.bacnet.datatypes.BBacnetObjectIdentifier;
|
||||
import javax.baja.bacnet.datatypes.BBacnetTimeStamp;
|
||||
import javax.baja.bacnet.enums.BBacnetNotifyType;
|
||||
import javax.baja.bacnet.enums.BCharacterSetEncoding;
|
||||
import javax.baja.sys.BEnum;
|
||||
|
||||
public interface EventNotificationListener extends BacnetServiceListener {
|
||||
void receiveConfirmedEventNotification(BBacnetAddress bBacnetAddress, long j, BBacnetObjectIdentifier bBacnetObjectIdentifier, BBacnetObjectIdentifier bBacnetObjectIdentifier2, BBacnetTimeStamp bBacnetTimeStamp, long j2, int i, BEnum bEnum, String str, BBacnetNotifyType bBacnetNotifyType, boolean z, BEnum bEnum2, BEnum bEnum3, byte[] bArr, BCharacterSetEncoding bCharacterSetEncoding);
|
||||
|
||||
void receiveUnconfirmedEventNotification(BBacnetAddress bBacnetAddress, long j, BBacnetObjectIdentifier bBacnetObjectIdentifier, BBacnetObjectIdentifier bBacnetObjectIdentifier2, BBacnetTimeStamp bBacnetTimeStamp, long j2, int i, BEnum bEnum, String str, BBacnetNotifyType bBacnetNotifyType, boolean z, BEnum bEnum2, BEnum bEnum3, byte[] bArr, BCharacterSetEncoding bCharacterSetEncoding);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package javax.baja.bacnet.io;
|
||||
|
||||
import javax.baja.bacnet.datatypes.BBacnetOctetString;
|
||||
|
||||
public interface FileData {
|
||||
public static final int RECORD_ACCESS = 1;
|
||||
public static final int STREAM_ACCESS = 0;
|
||||
|
||||
int getAccessMethod();
|
||||
|
||||
byte[] getFileData();
|
||||
|
||||
BBacnetOctetString[] getFileRecordData();
|
||||
|
||||
int getFileStart();
|
||||
|
||||
long getRecordCount();
|
||||
|
||||
boolean isEndOfFile();
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package javax.baja.bacnet.io;
|
||||
|
||||
import javax.baja.bacnet.BacnetException;
|
||||
import javax.baja.bacnet.datatypes.BBacnetAddress;
|
||||
|
||||
public interface PrivateTransferListener extends BacnetServiceListener {
|
||||
int getVendorId();
|
||||
|
||||
byte[] receiveConfirmedPrivateTransfer(long j, long j2, byte[] bArr, BBacnetAddress bBacnetAddress) throws BacnetException;
|
||||
|
||||
void receiveUnconfirmedPrivateTransfer(long j, long j2, byte[] bArr, BBacnetAddress bBacnetAddress) throws BacnetException;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package javax.baja.bacnet.io;
|
||||
|
||||
public interface PropertyReference {
|
||||
int getPropertyArrayIndex();
|
||||
|
||||
int getPropertyId();
|
||||
|
||||
void readAsn(AsnInput asnInput) throws AsnException;
|
||||
|
||||
void writeAsn(AsnOutput asnOutput);
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package javax.baja.bacnet.io;
|
||||
|
||||
public interface PropertyValue {
|
||||
int getErrorClass();
|
||||
|
||||
int getErrorCode();
|
||||
|
||||
int getPriority();
|
||||
|
||||
ErrorType getPropertyAccessError();
|
||||
|
||||
int getPropertyArrayIndex();
|
||||
|
||||
int getPropertyId();
|
||||
|
||||
byte[] getPropertyValue();
|
||||
|
||||
boolean isError();
|
||||
|
||||
void readAsn(AsnInput asnInput) throws AsnException, RejectException;
|
||||
|
||||
void writeAsn(AsnOutput asnOutput);
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package javax.baja.bacnet.io;
|
||||
|
||||
import javax.baja.bacnet.datatypes.BBacnetBitString;
|
||||
|
||||
public interface RangeData extends PropertyReference {
|
||||
public static final int FIRST_SEQUENCE_NUMBER = 6;
|
||||
public static final int ITEM_COUNT = 4;
|
||||
public static final int ITEM_DATA = 7;
|
||||
public static final int ITEM_DATA_NO_SEQ_NUM = 5;
|
||||
public static final int RESULT_FLAGS = 3;
|
||||
|
||||
ErrorType getError();
|
||||
|
||||
int getErrorClass();
|
||||
|
||||
int getErrorCode();
|
||||
|
||||
long getFirstSequenceNumber();
|
||||
|
||||
long getItemCount();
|
||||
|
||||
byte[] getItemData();
|
||||
|
||||
BBacnetBitString getResultFlags();
|
||||
|
||||
boolean includesFirstItem();
|
||||
|
||||
boolean includesLastItem();
|
||||
|
||||
boolean isError();
|
||||
|
||||
boolean isMoreItems();
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package javax.baja.bacnet.io;
|
||||
|
||||
import javax.baja.bacnet.datatypes.BBacnetDateTime;
|
||||
|
||||
public interface RangeReference extends PropertyReference {
|
||||
public static final int BY_POSITION = 3;
|
||||
public static final int BY_SEQUENCE_NUMBER = 6;
|
||||
public static final int BY_TIME = 7;
|
||||
public static final int BY_TIME_DEPRECATED = 4;
|
||||
public static final int TIME_RANGE_DEPRECATED = 5;
|
||||
|
||||
int getCount();
|
||||
|
||||
int getRangeType();
|
||||
|
||||
long getReferenceIndex();
|
||||
|
||||
BBacnetDateTime getReferenceTime();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package javax.baja.bacnet.util.worker;
|
||||
|
||||
import javax.baja.bacnet.datatypes.BBacnetAddress;
|
||||
|
||||
public interface IBacnetAddress {
|
||||
BBacnetAddress getAddress();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package javax.baja.bacnet.util.worker;
|
||||
|
||||
import javax.baja.util.IFuture;
|
||||
|
||||
public interface IWorkerPool {
|
||||
boolean isRunning();
|
||||
|
||||
IFuture post(Runnable runnable);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package javax.baja.bacnet.util.worker;
|
||||
|
||||
import javax.baja.util.Queue;
|
||||
|
||||
public interface IWorkerPoolAware {
|
||||
Queue getQueue();
|
||||
|
||||
String getWorkerThreadName();
|
||||
|
||||
boolean hasWorkerPool();
|
||||
|
||||
void stopWorker();
|
||||
}
|
||||
Reference in New Issue
Block a user