MCPcopy Create free account

hub / github.com/SteveyO/Hue-Emulator / functions

Functions476 in github.com/SteveyO/Hue-Emulator

↓ 117 callersMethodputOpt
Put a key/value pair in the JSONObject, but only if the key and the value are both non-null. @param key A key string. @param value
src/org/json/JSONObject.java:1174
↓ 75 callersMethodequals
Returns true if the point's coordinates equal (x,y)
src/com/hueemulator/utils/PointF.java:48
↓ 67 callersMethodget
Get the object value associated with an index. @param index The index must be between 0 and length() - 1. @return An object value. @throws
src/org/json/JSONArray.java:191
↓ 63 callersMethodput
Append a boolean value. This increases the array's length by one. @param value A boolean value. @return this.
src/org/json/JSONArray.java:583
↓ 38 callersMethodlength
Get the number of elements in the JSONArray, included nulls. @return The length (or size).
src/org/json/JSONArray.java:376
↓ 37 callersMethodput
Put a key/boolean pair in the JSONObject. @param key A key string. @param value A boolean which is the value. @return this. @th
src/org/json/JSONObject.java:1027
↓ 36 callersMethodaddTextToConsole
(String text, Color textColour, boolean appendText)
src/com/hueemulator/emulator/Controller.java:209
↓ 29 callersMethodtoString
Make a JSON text of this JSONArray. For compactness, no unnecessary whitespace is added. If it is not possible to produce a syntactically correct JSON
src/org/json/JSONArray.java:855
↓ 27 callersMethodwrite
Write the contents of the JSONObject as JSON text to a writer. For compactness, no whitespace is added. <p> Warning: This method assumes that the data
src/org/json/JSONObject.java:1532
↓ 25 callersMethodgetSchedules
()
src/com/hueemulator/model/PHBridgeConfiguration.java:35
↓ 25 callersMethodtoString
Make a JSON text of this JSONObject. For compactness, no whitespace is added. If this would not result in a syntactically correct JSON text, then null
src/org/json/JSONObject.java:1385
↓ 24 callersMethodset
Set the point's x and y coordinates
src/com/hueemulator/utils/PointF.java:22
↓ 23 callersMethodnext
Get the next character in the source string. @return The next character, or 0 if past the end of the source string.
src/org/json/JSONTokener.java:148
↓ 23 callersMethodwrite
Write the contents of the JSONArray as JSON text to a writer. For compactness, no whitespace is added. <p> Warning: This method assumes that the data
src/org/json/JSONArray.java:891
↓ 22 callersMethodgetMenuBar
()
src/com/hueemulator/gui/View.java:83
↓ 22 callersMethodoptString
Get an optional string associated with a key. It returns an empty string if there is no such key. If the value is not a string and is not null, then i
src/org/json/JSONObject.java:951
↓ 20 callersMethodequals
(Object obj)
src/org/json/JSONObject.java:1632
↓ 20 callersMethodgetLights
()
src/com/hueemulator/model/PHScenesEntry.java:29
↓ 18 callersMethodshowResponseJson
()
src/com/hueemulator/emulator/Controller.java:405
↓ 17 callersMethodappend
Append values to the array under a key. If the key does not exist in the JSONObject, then the key is put in the JSONObject with its value being a JSON
src/org/json/JSONObject.java:406
↓ 17 callersMethodgetGroups
()
src/com/hueemulator/model/PHBridgeConfiguration.java:55
↓ 16 callersMethodtoString
()
src/com/hueemulator/model/PHLightState.java:219
↓ 15 callersMethoddoPutOrPost
(String url, String jsonString, String requestMethod)
tests/com/hueemulator/emulator/HttpTester.java:53
↓ 14 callersMethodget
Get the value object associated with a key. @param key A key string. @return The object associated with the key. @throws JSONException
src/org/json/JSONObject.java:457
↓ 14 callersMethodjsonsArrayEqual
Tests two JSON strings for equality by performing a deep comparison. @param json1 represents a JSON object to compare with json2 @param json2 represe
tests/com/hueemulator/lighting/utils/TestUtils.java:91
↓ 14 callersMethodquote
Produce a string in double quotes with backslash sequences in all the right places. A backslash will be inserted within </, producing <\/, allowing JS
src/org/json/JSONObject.java:1191
↓ 13 callersMethodback
Back up one character. This provides a sort of lookahead capability, so that you can test for a digit or letter before attempting to parse the next nu
src/org/json/JSONTokener.java:93
↓ 13 callersMethodlength
Get the number of keys stored in the JSONObject. @return The number of keys in the JSONObject.
src/org/json/JSONObject.java:728
↓ 12 callersMethodgetBridgeConfiguration
()
src/com/hueemulator/emulator/Model.java:31
↓ 11 callersMethodgetString
Get the string associated with an index. @param index The index must be between 0 and length() - 1. @return A string value. @throws JSONEx
src/org/json/JSONArray.java:328
↓ 11 callersMethodnextClean
Get the next char in the string, skipping whitespace. @throws JSONException @return A character, or 0 if there are no more characters.
src/org/json/JSONTokener.java:230
↓ 11 callersMethodopt
Get an optional value associated with a key. @param key A key string. @return An object which is the value, or null if there is no value.
src/org/json/JSONObject.java:785
↓ 11 callersMethodsyntaxError
Make a JSONException to signal a syntax error. @param message The error message. @return A JSONException object, suitable for throwing
src/org/json/JSONTokener.java:432
↓ 10 callersMethodgetConfig
()
src/com/hueemulator/model/PHBridgeConfiguration.java:45
↓ 10 callersMethodnames
Produce a JSONArray containing the names of the elements of this JSONObject. @return A JSONArray containing the key strings, or null if the JSONObjec
src/org/json/JSONObject.java:739
↓ 10 callersMethodoptInt
Get an optional int value associated with a key, or zero if there is no such key or if the value is not a number. If the value is a string, an attempt
src/org/json/JSONObject.java:861
↓ 10 callersMethodwriteValue
(Writer writer, Object value, int indentFactor, int indent)
src/org/json/JSONObject.java:1536
↓ 8 callersMethodgetName
()
src/com/hueemulator/model/PHLight.java:45
↓ 7 callersMethoddoGet
(String url)
tests/com/hueemulator/emulator/HttpTester.java:15
↓ 7 callersMethodgetState
()
src/com/hueemulator/model/PHLight.java:55
↓ 7 callersMethodjsonsEqual
Tests two JSON strings for equality by performing a deep comparison. @param json1 represents a JSON object to compare with json2 @param json2 represe
tests/com/hueemulator/lighting/utils/TestUtils.java:78
↓ 7 callersMethodopt
Get the optional object value associated with an index. @param index The index must be between 0 and length() - 1. @return An object value
src/org/json/JSONArray.java:387
↓ 6 callersMethodgetClosestPointToPoints
Find the closest point on a line. This point will be within reach of the lamp. @param pointA the point where the line starts @param pointB
src/com/hueemulator/utils/PHUtilitiesHelper.java:368
↓ 6 callersMethodgetDistanceBetweenTwoPoints
Find the distance between two points. @param one the point object @param two the point object @return float the distance between point on
src/com/hueemulator/utils/PHUtilitiesHelper.java:287
↓ 6 callersMethodgetGraphicsPanel
()
src/com/hueemulator/gui/View.java:91
↓ 6 callersMethodgetHttpServer
()
src/com/hueemulator/server/Server.java:36
↓ 6 callersMethodgetHue
()
src/com/hueemulator/model/PHLightState.java:115
↓ 6 callersMethodoptBoolean
Get an optional boolean associated with a key. It returns false if there is no such key, or if the value is not Boolean.TRUE or the String "true". @p
src/org/json/JSONObject.java:797
↓ 6 callersMethodremove
Remove an index and close the hole. @param index The index of the element to be removed. @return The value that was associated with the in
src/org/json/JSONArray.java:815
↓ 6 callersMethodsetState
(PHLightState state)
src/com/hueemulator/model/PHLight.java:60
↓ 6 callersMethodtestValidity
Throw an exception if the object is a NaN or infinite number. @param o The object to test. @throws JSONException If o is a non
src/org/json/JSONObject.java:1335
↓ 5 callersMethodgetBri
()
src/com/hueemulator/model/PHLightState.java:64
↓ 5 callersMethodgetConsole
()
src/com/hueemulator/gui/View.java:75
↓ 5 callersMethodgetInstance
()
tests/com/hueemulator/emulator/TestEmulator.java:24
↓ 5 callersMethodgetModelid
()
src/com/hueemulator/model/PHLight.java:65
↓ 5 callersMethodgetOn
()
src/com/hueemulator/model/PHLightState.java:135
↓ 5 callersMethodgetPort
()
src/com/hueemulator/emulator/Controller.java:259
↓ 5 callersMethodgetSat
()
src/com/hueemulator/model/PHLightState.java:84
↓ 5 callersMethodoptJSONObject
Get an optional JSONObject associated with a key. It returns null if there is no such key, or if its value is not a JSONObject. @param key
src/org/json/JSONObject.java:905
↓ 5 callersMethodtoString
Make a printable string of this JSONTokener. @return " at {index} [character {character} line {line}]"
src/org/json/JSONTokener.java:442
↓ 4 callersMethodappend
(final String dateString, final String s, final Color color, final JEditorPane console)
src/com/hueemulator/emulator/Controller.java:357
↓ 4 callersMethodconvertJsonElement
(Object elem)
tests/com/hueemulator/lighting/utils/TestUtils.java:130
↓ 4 callersMethodcrossProduct
Calculates crossProduct of two 2D vectors / points. @param point1 first point used as vector @param point2 second point used as
src/com/hueemulator/utils/PHUtilitiesHelper.java:304
↓ 4 callersMethodgetAlert
()
src/com/hueemulator/model/PHLightState.java:105
↓ 4 callersMethodgetCommand
()
src/com/hueemulator/model/PHSchedulesEntry.java:51
↓ 4 callersMethodgetEffect
()
src/com/hueemulator/model/PHLightState.java:74
↓ 4 callersMethodgetInstance
()
src/com/hueemulator/emulator/PHScheduleTimerManager.java:22
↓ 4 callersMethodgetModel
()
tests/com/hueemulator/emulator/TestEmulator.java:85
↓ 4 callersMethodgetOn
()
src/com/hueemulator/model/PHBody.java:46
↓ 4 callersMethodgetServer
()
src/com/hueemulator/emulator/Emulator.java:96
↓ 4 callersMethodgetXy
()
src/com/hueemulator/model/PHLightState.java:155
↓ 4 callersMethodindent
(Writer writer, int indent)
src/org/json/JSONObject.java:1569
↓ 4 callersMethodisServerRunning
()
tests/com/hueemulator/emulator/TestEmulator.java:66
↓ 4 callersMethodkeys
Get an enumeration of the keys of the JSONObject. @return An iterator of the keys.
src/org/json/JSONObject.java:710
↓ 4 callersMethodloadConfiguration
(String fileName)
src/com/hueemulator/emulator/Emulator.java:73
↓ 4 callersMethodoptJSONArray
Get an optional JSONArray associated with a key. It returns null if there is no such key, or if its value is not a JSONArray. @param key A
src/org/json/JSONObject.java:892
↓ 4 callersMethodreloadInitialConfig
This method is to ensure the Tests are stateless. This method should be called in the setUp before each test is run so the data is reloaded in the se
tests/com/hueemulator/emulator/TestEmulator.java:60
↓ 4 callersMethodsendErrorResponse
(String groupIdentifier, String type, OutputStream responseBody)
src/com/hueemulator/server/handlers/GroupsAPI.java:372
↓ 4 callersMethodstartEmulator
()
tests/com/hueemulator/emulator/TestEmulator.java:33
↓ 4 callersMethodwrap
Wrap an object, if necessary. If the object is null, return the NULL object. If it is an array or collection, wrap it in a JSONArray. If it is a map,
src/org/json/JSONObject.java:1485
↓ 3 callersMethodchopName
(String name)
src/com/hueemulator/utils/Utils.java:30
↓ 3 callersMethodgetBri
()
src/com/hueemulator/model/PHBody.java:26
↓ 3 callersMethodgetCt
()
src/com/hueemulator/model/PHLightState.java:145
↓ 3 callersMethodgetCurrentDate
Returns the current date in the Date Format used by the Bridge. @return
src/com/hueemulator/utils/Utils.java:116
↓ 3 callersMethodgetModel
()
src/com/hueemulator/gui/GraphicsPanel.java:276
↓ 3 callersMethodgetModel
()
src/com/hueemulator/emulator/Controller.java:263
↓ 3 callersMethodgetReachable
()
src/com/hueemulator/model/PHLightState.java:94
↓ 3 callersMethodgetStartButton
()
src/com/hueemulator/gui/HueMenuBar.java:269
↓ 3 callersMethodgetStopButton
()
src/com/hueemulator/gui/HueMenuBar.java:277
↓ 3 callersMethodgetTime
()
src/com/hueemulator/model/PHSchedulesEntry.java:21
↓ 3 callersMethodgetType
()
src/com/hueemulator/model/PHLight.java:85
↓ 3 callersMethodgetWhitelist
()
src/com/hueemulator/model/PHConfig.java:189
↓ 3 callersMethodgetXy
()
src/com/hueemulator/model/PHBody.java:56
↓ 3 callersMethodisInRange
(int value, int start, int end)
src/com/hueemulator/utils/Utils.java:22
↓ 3 callersMethodnextValue
Get the next value. The value can be a Boolean, Double, Integer, JSONArray, JSONObject, Long, or String, or the JSONObject.NULL object. @throws JSONEx
src/org/json/JSONTokener.java:353
↓ 3 callersMethodreturnErrorResponse
(String errorType, String description, String address, OutputStream responseBody)
src/com/hueemulator/server/handlers/ConfigurationAPI.java:223
↓ 3 callersMethodsendErrorResponse
(String lightIdentifier, String type, OutputStream responseBody)
src/com/hueemulator/server/handlers/SchedulesAPI.java:355
↓ 3 callersMethodsetBri
(Integer bri)
src/com/hueemulator/model/PHBody.java:31
↓ 3 callersMethodsetController
(Controller controller)
src/com/hueemulator/gui/HueMenuBar.java:333
↓ 3 callersMethodsetHasBridgeBeenPushLinked
(boolean hasBridgeBeenPushLinked)
src/com/hueemulator/emulator/Controller.java:393
next →1–100 of 476, ranked by callers