Building Controls Virtual Test Bed
|
This is the driver class in BACnet. More...
Classes | |
enum | BacnetApplicationTag |
enumeration object, contains all the BACnet application tags specified in BACnet Standard used in writing property to BACnet device More... | |
enum | BacObjectType |
Enumeration object, contains all the object names specified in BACnet Standard, including BACnet Device Object and non-Device BACnet objects. More... | |
enum | BacProperty |
BACnet property enumeration object, contains major properties specified in BACnet Standard, including BACnet Device propety and non Device BACnet Object property. More... | |
Public Member Functions | |
String | getReadPropertyBinaryPath () |
Returns the bacrp binary file path. More... | |
String | getWritePropertyBinaryPath () |
Returns the bacwp binary file path. More... | |
String | getGlobalwiBinaryPath () |
Returns the globalwi binary file path. More... | |
ArrayList< Integer > | findDevice () throws IllegalActionException |
Find BACnet devices in the network and return an integer list with their instance number. More... | |
ArrayList< BACnetObjectType > | parseBACnetObjectType (final String s) throws ParserConfigurationException, SAXException, IOException |
Parse the configuration file and generate an ArrayList that contains the xml content as specified in the configuration file, it is called in readXMLConfigurationFile (see bacnet.util.BACnet). More... | |
ArrayList< Integer > | readDeviceArray (final ArrayList< BACnetObjectType > bot_arr) throws NumberFormatException |
Read device instance from parsed ArrayList. More... | |
ArrayList< BACnetObject > | readObjectList (final ArrayList< BACnetObjectType > bot_arr, final int dev_inst) throws NumberFormatException |
Read a subset of all objects associated with a device from ArrayList. More... | |
ArrayList< BACnetCompleteProperty > | readDevicePropertyList (final ArrayList< BACnetObjectType > bot_arr, final int dev_inst) throws NumberFormatException |
Get an arraylist with elements of BACnetCompleteProerty, one for each property of BACnet device and BACnet objects. More... | |
ArrayList< BACnetCompleteProperty > | readCompleteObjectPropertyList (final ArrayList< BACnetObjectType > bot_arr, final int dev_inst, final String obj_type, final int obj_inst) |
Read complete object property list from BACnetObjectype. More... | |
ArrayList< ProcessBuilder > | getProcesses (ArrayList< BACnetCompleteProperty > prop_arr) |
Prepare the process to be executed. More... | |
void | validateApplicationTag (final String s) throws IllegalArgumentException |
Application tag validaton. More... | |
void | validatePropertyName (final String s) throws IllegalArgumentException |
Property name validation. More... | |
void | validateObjectType (final String s) throws IllegalArgumentException |
object type validation. More... | |
void | validateXMLFile (final String xmlfile, final Schema schema) throws SAXException, FileNotFoundException,IOException |
XMLfile validation. More... | |
Schema | loadSchema (final String name) throws SAXException |
Load schema. More... | |
Static Protected Member Functions | |
static String | toString (String arg) throws IllegalArgumentException |
Gets a string representation of the enumeration. More... | |
Static Private Attributes | |
static final String | bcvtbhome = System.getenv("BCVTB_HOME") |
String that points to root directory of the BCVTB. More... | |
static final String | LS = System.getProperty("line.separator") |
System-dependent line separator. More... | |
static final String | FS = System.getProperty("file.separator") |
System-dependent file separator. More... | |
static final String | osName = System.getProperty("os.name") |
Name of the operating system. More... | |
This is the driver class in BACnet.
It is used mainly by BACnet.java. It is used to process BACnetObjectType read from configuration file, and to translate them to processes, to be executed by BACnet-stack command.
This class is called by BACnet(seebacnet.util.BACnet ) to get reading and writing processes, BACnetReader(see bacnet.actor.BACnetReader) to get processes to read property from BACnet device, and by BACnetWrtier (see bacnet.actor.BACnetWriter) to to get processes to write property to BACnet device.
Definition at line 123 of file BACnetDeviceManager.java.
|
inline |
Find BACnet devices in the network and return an integer list with their instance number.
It is called in checkConnection() (see bacnet.util.BACnet).
IllegalActionException | if an error occurs. |
Definition at line 462 of file BACnetDeviceManager.java.
References bacnet.util.BACnetDeviceManager.getGlobalwiBinaryPath(), and bacnet.util.BACnetDeviceManager.LS.
|
inline |
Returns the globalwi binary file path.
It is called in findDevice, (see bacnet.util.BACnetDeviceManager).
Definition at line 442 of file BACnetDeviceManager.java.
References bacnet.util.BACnetDeviceManager.bcvtbhome, bacnet.util.BACnetDeviceManager.FS, and bacnet.util.BACnetDeviceManager.osName.
Referenced by bacnet.util.BACnetDeviceManager.findDevice().
|
inline |
Prepare the process to be executed.
prop_arr | arraylist with elements of BACnetCompleteProperty |
Definition at line 796 of file BACnetDeviceManager.java.
References bacnet.util.BACnetDeviceManager.getReadPropertyBinaryPath(), bacnet.util.BACnetDeviceManager.getWritePropertyBinaryPath(), and i.
|
inline |
Returns the bacrp binary file path.
This function is called in prepareProcesses, (see bacnet.util.BACnetDeviceManager)
Definition at line 403 of file BACnetDeviceManager.java.
References bacnet.util.BACnetDeviceManager.bcvtbhome, bacnet.util.BACnetDeviceManager.FS, and bacnet.util.BACnetDeviceManager.osName.
Referenced by bacnet.util.BACnetDeviceManager.getProcesses().
|
inline |
Returns the bacwp binary file path.
This function is called in prepareProcesses, (see bacnet.util.BACnetDeviceManager).
Definition at line 423 of file BACnetDeviceManager.java.
References bacnet.util.BACnetDeviceManager.bcvtbhome, bacnet.util.BACnetDeviceManager.FS, and bacnet.util.BACnetDeviceManager.osName.
Referenced by bacnet.util.BACnetDeviceManager.getProcesses().
|
inline |
Load schema.
It is called in validateSyntax(), (see bacnet.actor.BACnetReader and bacnet.actor.BACnetWriter).
name | file name of the schema file |
SAXException | if error occurs in schema loading process |
Definition at line 1009 of file BACnetDeviceManager.java.
References bacnet.util.BACnetDeviceManager.LS.
|
inline |
Parse the configuration file and generate an ArrayList that contains the xml content as specified in the configuration file, it is called in readXMLConfigurationFile (see bacnet.util.BACnet).
s | path of configuration file |
ParserConfigurationException | if errors occur in configuring parser |
SAXException | if errors occur in parsing configuration file |
IOException | if I/O exception occurs in parsing configuration file |
Definition at line 546 of file BACnetDeviceManager.java.
References bacnet.util.BACnetDeviceManager.LS.
|
inline |
Read complete object property list from BACnetObjectype.
It is called in readDevicePropertyList, (see bacnet.util.BACnetDeviceManager).
bot_arr | BACnetObjecttype cotaining xml content |
dev_inst | device instance number |
obj_type | object name |
obj_inst | object instance |
Definition at line 755 of file BACnetDeviceManager.java.
References bacnet.util.BACnetObjectType.getBOTInst(), bacnet.util.BACnetObjectType.getBOTName(), and i.
Referenced by bacnet.util.BACnetDeviceManager.readDevicePropertyList().
|
inline |
Read device instance from parsed ArrayList.
It is called in readDeviceArray, (see bacnet.util.BACnet).
bot_arr | ArrayList containing xml configuration file content |
NumberFormatException | if error occurs while converting instance number from string to integer |
Definition at line 584 of file BACnetDeviceManager.java.
References bacnet.util.BACnetObjectType.getBOTName(), i, and bacnet.util.BACnetDeviceManager.LS.
|
inline |
Get an arraylist with elements of BACnetCompleteProerty, one for each property of BACnet device and BACnet objects.
It is called in readDevicePropertyArray, (see bacnet.util.BACnet).
bot_arr | ArrayList containing configuration file content |
dev_inst | device instance number |
NumberFormatException | if object/device instance number is not integer |
Definition at line 685 of file BACnetDeviceManager.java.
References bacnet.util.BACnetObjectType.getBOTInst(), bacnet.util.BACnetObjectType.getBOTName(), bacnet.util.BACnetObject.getObjectType(), i, bacnet.util.BACnetDeviceManager.LS, bacnet.util.BACnetDeviceManager.readCompleteObjectPropertyList(), and bacnet.util.BACnetDeviceManager.readObjectList().
|
inline |
Read a subset of all objects associated with a device from ArrayList.
It is called in readDevicePropertyList, (see bacnet.util.BACnetDeviceManager).
bot_arr | ArrayList containing XML configuration file |
dev_inst | device instance number |
NumberFormatException | if error occurs while trying to convert object instance number from string to integer |
Definition at line 621 of file BACnetDeviceManager.java.
References bacnet.util.BACnetObjectType.getBOTInst(), bacnet.util.BACnetObjectType.getBOTName(), i, bacnet.util.BACnetDeviceManager.LS, and bacnet.util.BACnetDeviceManager.toString().
Referenced by bacnet.util.BACnetDeviceManager.readDevicePropertyList().
|
inlinestaticprotected |
Gets a string representation of the enumeration.
arg | enumeration to be converted to string |
IllegalArgumentException | if the argument is not BacnetApplicationTag , BacProperty or BacObjectType |
Definition at line 848 of file BACnetDeviceManager.java.
References i, bacnet.util.BACnetDeviceManager.LS, r, and strLen.
Referenced by bacnet.util.BACnetDeviceManager.readObjectList(), bacnet.util.BACnetDeviceManager.validateApplicationTag(), bacnet.util.BACnetDeviceManager.validateObjectType(), and bacnet.util.BACnetDeviceManager.validatePropertyName().
|
inline |
Application tag validaton.
It is called in validateAttributes(), (see bacnet.util.BACnet).
s | string read from configuration file |
IllegalArgumentException | if s is not part of BacnetApplicationTag enum type |
Definition at line 906 of file BACnetDeviceManager.java.
References bacnet.util.BACnetDeviceManager.LS, and bacnet.util.BACnetDeviceManager.toString().
|
inline |
object type validation.
It is called in validateObjectType(), (see bacnet.util.BACnet).
s | string read from xml configration file |
IllegalArgumentException | if s is not part of the BacProperty enum type |
Definition at line 949 of file BACnetDeviceManager.java.
References bacnet.util.BACnetDeviceManager.LS, and bacnet.util.BACnetDeviceManager.toString().
|
inline |
Property name validation.
It is called in validatePropertyName(), (see bacnet.util.BACnet).
s | string read from xml configration file |
IllegalArgumentException | if s is not part of the BacProperty enum type |
Definition at line 928 of file BACnetDeviceManager.java.
References bacnet.util.BACnetDeviceManager.LS, and bacnet.util.BACnetDeviceManager.toString().
|
inline |
XMLfile validation.
It is called in validateSyntax(), (see bacnet.actor.BACnetReader and bacnet.actor.BACnetWriter).
xmlfile | file name of the xmlfile |
schema | schema used to validate the xmlfile |
FileNotFoundException | if either xmlfile or schema couldn't be found |
SAXException | if xmlfile is not properly written |
IOException | if error occurs when reading xmlfile or schema |
Definition at line 974 of file BACnetDeviceManager.java.
References bacnet.util.BACnetDeviceManager.LS, and source.
|
staticprivate |
String that points to root directory of the BCVTB.
Definition at line 127 of file BACnetDeviceManager.java.
Referenced by bacnet.util.BACnetDeviceManager.getGlobalwiBinaryPath(), bacnet.util.BACnetDeviceManager.getReadPropertyBinaryPath(), and bacnet.util.BACnetDeviceManager.getWritePropertyBinaryPath().
|
staticprivate |
System-dependent file separator.
Definition at line 133 of file BACnetDeviceManager.java.
Referenced by bacnet.util.BACnetDeviceManager.getGlobalwiBinaryPath(), bacnet.util.BACnetDeviceManager.getReadPropertyBinaryPath(), and bacnet.util.BACnetDeviceManager.getWritePropertyBinaryPath().
|
staticprivate |
System-dependent line separator.
Definition at line 130 of file BACnetDeviceManager.java.
Referenced by bacnet.util.BACnetDeviceManager.findDevice(), bacnet.util.BACnetDeviceManager.loadSchema(), bacnet.util.BACnetDeviceManager.parseBACnetObjectType(), bacnet.util.BACnetDeviceManager.readDeviceArray(), bacnet.util.BACnetDeviceManager.readDevicePropertyList(), bacnet.util.BACnetDeviceManager.readObjectList(), bacnet.util.BACnetDeviceManager.toString(), bacnet.util.BACnetDeviceManager.validateApplicationTag(), bacnet.util.BACnetDeviceManager.validateObjectType(), bacnet.util.BACnetDeviceManager.validatePropertyName(), and bacnet.util.BACnetDeviceManager.validateXMLFile().
|
staticprivate |
Name of the operating system.
Definition at line 136 of file BACnetDeviceManager.java.
Referenced by bacnet.util.BACnetDeviceManager.getGlobalwiBinaryPath(), bacnet.util.BACnetDeviceManager.getReadPropertyBinaryPath(), and bacnet.util.BACnetDeviceManager.getWritePropertyBinaryPath().