Code Monkey home page Code Monkey logo

get-set_infoapis's Introduction

getAllInfo() API

Initial set up - The JAR file for this API is stored in Documents-> 02_MDP_Students -> MDP_WN18->CloudTeam -> JARS as getAllInfo.jar Saved on local testbed under src/SerafinaTest Add to project build path by right clicking project -> configure build path -> add external JARs -> getAllInfo.jar (from specified spot in first bullet) Import into class using import getInfo.getAllInfo;

getTag() -

Takes in tag name and group name of tag as parameters

Returns a JSONObject with all the properties of the given tag (keys):

“clientHandle”, data type = string

“itemName”, data type = string

“active”, data type = boolean

“accessPath”, data type = string

“timeStamp”, data type = gregorian calendar

“value”, data type = Variant

“quality”, data type = boolean

Access information

JSONObject tag = .getTag(tagName, groupName);

tag.get(“property”) where “property” is anything from the above list (keys).

getTags() -

Takes in tag names and group names of tags as parameters

Returns a JSONArray of JSONObjects with all the properties of the given tags (keys):

“clientHandle”, data type = string

“itemName”, data type = string

“active”, data type = boolean

“accessPath”, data type = string

“timeStamp”, data type = gregorian calendar

“value”, data type = Variant

“quality”, data type = boolean

Access information

List tags = (JSONObject).getTags(tagNames, groupNames)

Get information using property names: tags.get(“property”)

getAvailableTagsInGroup() -

Takes in group name as parameter, returns all online tags in given group in List format

Access information

List availableTags = .getAvailableTagsInGroup(groupName) Print out using availableTags.get(i)

getExistingGroups() -

Takes in no parameters, returns a list of all existing groups on the server in List format

Access information

List groups = .getExistingGroups() Print out using groups.get(i)

setAllInfo() API

Initial set up - The JAR file for this API is stored in Documents-> 02_MDP_Students -> MDP_WN18->CloudTeam -> JARS as setAllInfo.jar Saved on local testbed under src/SerafinaTest Add to project build path by right clicking project -> configure build path -> add external JARs -> setAllInfo.jar (from specified spot in first bullet) Import into class using import setInfo.setAllInfo;

writeTag() -

Takes in the tag name too modify, its group name and the new value as parameters New value is a variant, function supports all types of variants (int, boolean, double, float, etc.) Returns a string that tells you if the writing was successful or not

Use

setAllInfo = new setAllInfo()

Print(.writeTag(tagName, groupName, value)

“Successful writing” if value was changed ,“Unsuccessful writing” if value was incorrectly changed or not changed

get-set_infoapis's People

Contributors

serafibk avatar

Watchers

James Cloos avatar Yuru Shao avatar Eric Newberry avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.