id stringlengths 24 24 | repo stringlengths 7 59 | path stringlengths 11 234 | func_name stringlengths 3 140 | url stringlengths 102 339 | split stringclasses 3
values | language stringclasses 1
value | docstring stringlengths 1 34k | code stringlengths 63 466k | text stringlengths 101 467k | token_count int32 22 125k | doc_chars int32 1 34k | code_chars int32 63 466k | license_basis stringclasses 1
value | source stringclasses 1
value | added stringdate 2026-12-05 00:00:00 2026-12-05 00:00:00 | record_sha256 stringlengths 64 64 | license stringclasses 18
values | license_class stringclasses 4
values | license_source stringlengths 45 101 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9757aa74dc27e799445733fe | jclawson/hazeltask | hazeltask-core/src/main/java/com/hazeltask/config/ExecutorLoadBalancingConfig.java | ExecutorLoadBalancingConfig.useLoadBalancedEnumOrdinalPrioritizer | https://github.com/jclawson/hazeltask/blob/801162bc54c5f1d5744a28a2844b24289d9495d7/hazeltask-core/src/main/java/com/hazeltask/config/ExecutorLoadBalancingConfig.java#L53-L59 | train | java | If you have priorities based on enums, this is the recommended prioritizer to use as it will prevent
starvation of low priority items
@param groupClass
@return | public ExecutorLoadBalancingConfig<GROUP> useLoadBalancedEnumOrdinalPrioritizer(Class<GROUP> groupClass) {
if(!groupClass.isEnum()) {
throw new IllegalArgumentException("The group class "+groupClass+" is not an enum");
}
groupPrioritizer = new LoadBalancedPriorityPrioritizer<GROUP>(n... | If you have priorities based on enums, this is the recommended prioritizer to use as it will prevent
starvation of low priority items
@param groupClass
@return
public ExecutorLoadBalancingConfig<GROUP> useLoadBalancedEnumOrdinalPrioritizer(Class<GROUP> groupClass) {
if(!groupClass.isEnum()) {
thro... | 116 | 160 | 383 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 45eb6d861b187b1c6f5c4e944809f0f90689b4f9c95941ea67517a98885d4ad3 | LGPL-3.0 | weak-copyleft | https://github.com/jclawson/hazeltask/blob/master/LGPL-LICENSE.txt |
b48db03fbf9693f2c7ac1e48 | jclawson/hazeltask | hazeltask-core/src/main/java/com/hazeltask/config/defaults/ExecutorConfigs.java | ExecutorConfigs.basicGroupable | https://github.com/jclawson/hazeltask/blob/801162bc54c5f1d5744a28a2844b24289d9495d7/hazeltask-core/src/main/java/com/hazeltask/config/defaults/ExecutorConfigs.java#L49-L52 | train | java | This configuration requires that all your tasks you submit to the system implement
the Groupable interface. By default, it will round robin tasks from each group
Tasks will be tracked internally in the system by randomly generated UUIDs
@return | public static <GROUP extends Serializable> ExecutorConfig<GROUP> basicGroupable() {
return new ExecutorConfig<GROUP>()
.withTaskIdAdapter((TaskIdAdapter<Groupable<GROUP>, GROUP, ?>) new DefaultGroupableTaskIdAdapter<GROUP>());
} | This configuration requires that all your tasks you submit to the system implement
the Groupable interface. By default, it will round robin tasks from each group
Tasks will be tracked internally in the system by randomly generated UUIDs
@return
public static <GROUP extends Serializable> ExecutorConfig<GROUP> basicG... | 104 | 247 | 260 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | bef927465a2813c548e29b6459136e8be2eda89c0648faf848553a8d9a76d7ed | LGPL-3.0 | weak-copyleft | https://github.com/jclawson/hazeltask/blob/master/LGPL-LICENSE.txt |
971b66cf1d216f2163226049 | jclawson/hazeltask | hazeltask-core/src/main/java/com/hazeltask/core/concurrent/collections/grouped/GroupMetadata.java | GroupMetadata.compareTo | https://github.com/jclawson/hazeltask/blob/801162bc54c5f1d5744a28a2844b24289d9495d7/hazeltask-core/src/main/java/com/hazeltask/core/concurrent/collections/grouped/GroupMetadata.java#L33-L43 | train | java | compareTo must be consistent with equals. If the priority is
equal however, and the groups are NOT equal, we want to place
*this* item at the end of the priority queue.
TODO: do we still need to do this "hack" now that we use a skiplist and
not a priority queue that breaks ties arbitrarily? | @Override
public int compareTo(GroupMetadata<G> o) {
//return ((Long)priority).compareTo(o.priority);
int comparison = ((Long)priority).compareTo(o.priority);
if(comparison == 0) {
if(!group.equals(o.group)) {
return -1;
}
}
return comp... | compareTo must be consistent with equals. If the priority is
equal however, and the groups are NOT equal, we want to place
*this* item at the end of the priority queue.
TODO: do we still need to do this "hack" now that we use a skiplist and
not a priority queue that breaks ties arbitrarily?
@Override
public int ... | 141 | 293 | 333 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b2fd835b954b148f4cbb8d961aa10d78f3fbb5ace80024ae178486f5c13140d0 | LGPL-3.0 | weak-copyleft | https://github.com/jclawson/hazeltask/blob/master/LGPL-LICENSE.txt |
55ae60a4b56406bfc092e4fa | jclawson/hazeltask | hazeltask-core/src/main/java/com/hazeltask/clusterop/ShutdownOp.java | ShutdownOp.call | https://github.com/jclawson/hazeltask/blob/801162bc54c5f1d5744a28a2844b24289d9495d7/hazeltask-core/src/main/java/com/hazeltask/clusterop/ShutdownOp.java#L29-L38 | train | java | I promise that this is always a collection of HazeltaskTasks | public Collection<HazeltaskTask<GROUP>> call() throws Exception {
try {
if(isShutdownNow)
return this.getDistributedExecutorService().shutdownNowWithHazeltask();
else
this.getDistributedExecutorService().shutdown();
} catch(IllegalStateException e)... | I promise that this is always a collection of HazeltaskTasks
public Collection<HazeltaskTask<GROUP>> call() throws Exception {
try {
if(isShutdownNow)
return this.getDistributedExecutorService().shutdownNowWithHazeltask();
else
this.getDistributedExecutor... | 82 | 60 | 378 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 61a1f64010c728441d5b5c0b48dc0ce061a0b15a648b735e31e894b414fab5f4 | LGPL-3.0 | weak-copyleft | https://github.com/jclawson/hazeltask/blob/master/LGPL-LICENSE.txt |
101b660c6b7c25eb9ef7691e | jclawson/hazeltask | hazeltask-core/src/main/java/com/hazeltask/hazelcast/MemberTasks.java | MemberTasks.executeOptimistic | https://github.com/jclawson/hazeltask/blob/801162bc54c5f1d5744a28a2844b24289d9495d7/hazeltask-core/src/main/java/com/hazeltask/hazelcast/MemberTasks.java#L53-L55 | train | java | Will wait a maximum of 1 minute for each node to response with their result. If an error occurs on any
member, we will always attempt to continue execution and collect as many results as possible.
@param execSvc
@param members
@param callable
@return | public static <T> Collection<MemberResponse<T>> executeOptimistic(IExecutorService execSvc, Set<Member> members, Callable<T> callable) {
return executeOptimistic(execSvc, members, callable, 60, TimeUnit.SECONDS);
} | Will wait a maximum of 1 minute for each node to response with their result. If an error occurs on any
member, we will always attempt to continue execution and collect as many results as possible.
@param execSvc
@param members
@param callable
@return
public static <T> Collection<MemberResponse<T>> executeOptimistic(... | 106 | 252 | 223 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 96cf55e326ecf7a07ba554641dfbc1d5f8eda26ad6947a7b6dc80334c9700707 | LGPL-3.0 | weak-copyleft | https://github.com/jclawson/hazeltask/blob/master/LGPL-LICENSE.txt |
627b8db212469124c31963f9 | jclawson/hazeltask | hazeltask-core/src/main/java/com/hazeltask/hazelcast/MemberTasks.java | MemberTasks.executeOptimistic | https://github.com/jclawson/hazeltask/blob/801162bc54c5f1d5744a28a2844b24289d9495d7/hazeltask-core/src/main/java/com/hazeltask/hazelcast/MemberTasks.java#L71-L107 | train | java | We will always try to gather as many results as possible and never throw an exception.
TODO: Make MemberResponse hold an exception that we can populate if something bad happens so we always
get to return something for a member in order to indicate a failure. Getting the result when there
is an error should throw an e... | public static <T> Collection<MemberResponse<T>> executeOptimistic(IExecutorService execSvc, Set<Member> members, Callable<T> callable, long maxWaitTime, TimeUnit unit) {
Collection<MemberResponse<T>> result = new ArrayList<MemberResponse<T>>(members.size());
Map<Member, Future<T>> resultFutures = execSv... | We will always try to gather as many results as possible and never throw an exception.
TODO: Make MemberResponse hold an exception that we can populate if something bad happens so we always
get to return something for a member in order to indicate a failure. Getting the result when there
is an error should throw an e... | 461 | 448 | 1,881 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | ba6c87b680389509d2a209f1168fca7c385f217c3cdaff5ddfba39beaf4727d0 | LGPL-3.0 | weak-copyleft | https://github.com/jclawson/hazeltask/blob/master/LGPL-LICENSE.txt |
576131d4de2a02d47c4a2ece | sypexgeo/sypexgeo4j | src/main/java/com/github/sypexgeo/SxRestClient.java | SxRestClient.getList | https://github.com/sypexgeo/sypexgeo4j/blob/7bd9d0dca5cff54dc745c00220372bcae2fa7237/src/main/java/com/github/sypexgeo/SxRestClient.java#L77-L100 | train | java | Executes REST request and return results for a given IPs.
Normally there is only 1 result in the list per IP.
@param ip IP to get geo info for. Multiple IPs can be used with comma as separator.
@return list of SxGeoResult results
@throws IllegalArgumentException if IP address is invalid. | @NotNull
public List<SxGeoResult> getList(@NotNull String ip) {
if (!IPV4_COMMA_SEPARATED_PATTERN.matcher(ip).matches()) {
throw new IllegalArgumentException("Illegal IP address or list: " + ip);
}
clientQueriesCount++;
List<SxGeoResult> cachedResult = cache == null ? nul... | Executes REST request and return results for a given IPs.
Normally there is only 1 result in the list per IP.
@param ip IP to get geo info for. Multiple IPs can be used with comma as separator.
@return list of SxGeoResult results
@throws IllegalArgumentException if IP address is invalid.
@NotNull
public List<SxGe... | 257 | 289 | 930 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b4e6035fa62d97e822b1d90ba91d9794501017343074fc00677aa96e77f67417 | Apache-2.0 | permissive | https://github.com/sypexgeo/sypexgeo4j/blob/master/LICENSE |
52510213f01726f3ab8fffdd | sypexgeo/sypexgeo4j | src/main/java/com/github/sypexgeo/SxRestClient.java | SxRestClient.get | https://github.com/sypexgeo/sypexgeo4j/blob/7bd9d0dca5cff54dc745c00220372bcae2fa7237/src/main/java/com/github/sypexgeo/SxRestClient.java#L105-L125 | train | java | Executes REST request for a single IP address. | @Nullable
public SxGeoResult get(@NotNull String ip) {
if (!IPV4_PATTERN.matcher(ip).matches()) {
throw new IllegalArgumentException("Illegal IP address: " + ip);
}
clientQueriesCount++;
List<SxGeoResult> cachedResult = cache == null ? null : cache.getList(ip);
if... | Executes REST request for a single IP address.
@Nullable
public SxGeoResult get(@NotNull String ip) {
if (!IPV4_PATTERN.matcher(ip).matches()) {
throw new IllegalArgumentException("Illegal IP address: " + ip);
}
clientQueriesCount++;
List<SxGeoResult> cachedResult = cach... | 191 | 46 | 865 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b9060aa9ee7962d618c43d0569f3ca8ce1345f62df973bcd1a954a34c5f74f10 | Apache-2.0 | permissive | https://github.com/sypexgeo/sypexgeo4j/blob/master/LICENSE |
9e581cd8e1d6745aa0990928 | jclawson/hazeltask | hazeltask-core/src/main/java/com/hazeltask/executor/DistributedFutureTracker.java | DistributedFutureTracker.createFuture | https://github.com/jclawson/hazeltask/blob/801162bc54c5f1d5744a28a2844b24289d9495d7/hazeltask-core/src/main/java/com/hazeltask/executor/DistributedFutureTracker.java#L70-L75 | train | java | It is required that T be Serializable | @SuppressWarnings("unchecked")
public <T> DistributedFuture<GROUP, T> createFuture(HazeltaskTask<GROUP> task) {
DistributedFuture<GROUP, T> future = new DistributedFuture<GROUP, T>(topologyService, task.getGroup(), task.getId());
this.futures.put(task.getId(), (DistributedFuture<GROUP, Serializable>... | It is required that T be Serializable
@SuppressWarnings("unchecked")
public <T> DistributedFuture<GROUP, T> createFuture(HazeltaskTask<GROUP> task) {
DistributedFuture<GROUP, T> future = new DistributedFuture<GROUP, T>(topologyService, task.getGroup(), task.getId());
this.futures.put(task.getId(), ... | 91 | 37 | 359 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 958ae375009dabbfd8a95d11b3ac1254ef131a3cf07ac128c0a946a869ecb51b | LGPL-3.0 | weak-copyleft | https://github.com/jclawson/hazeltask/blob/master/LGPL-LICENSE.txt |
d62d55c800f02b77cd4522c6 | jclawson/hazeltask | hazeltask-core/src/main/java/com/hazeltask/executor/DistributedFutureTracker.java | DistributedFutureTracker.errorFuture | https://github.com/jclawson/hazeltask/blob/801162bc54c5f1d5744a28a2844b24289d9495d7/hazeltask-core/src/main/java/com/hazeltask/executor/DistributedFutureTracker.java#L116-L121 | train | java | handles when a member leaves and hazelcast partition data is lost. We want
to find the Futures that are waiting on lost data and error them | public void errorFuture(UUID taskId, Exception e) {
DistributedFuture<GROUP, Serializable> future = remove(taskId);
if(future != null) {
future.setException(e);
}
} | handles when a member leaves and hazelcast partition data is lost. We want
to find the Futures that are waiting on lost data and error them
public void errorFuture(UUID taskId, Exception e) {
DistributedFuture<GROUP, Serializable> future = remove(taskId);
if(future != null) {
future.setExc... | 75 | 140 | 204 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 1ba39e17965ec38f30f667a089e5113f2762877c9f6956a2fc245b5535d350fd | LGPL-3.0 | weak-copyleft | https://github.com/jclawson/hazeltask/blob/master/LGPL-LICENSE.txt |
e6d38f4165cab75e4c712305 | jclawson/hazeltask | hazeltask-core/src/main/java/com/hazeltask/core/concurrent/BackoffTimer.java | BackoffTimer.schedule | https://github.com/jclawson/hazeltask/blob/801162bc54c5f1d5744a28a2844b24289d9495d7/hazeltask-core/src/main/java/com/hazeltask/core/concurrent/BackoffTimer.java#L109-L114 | train | java | Schedules the task with a fixed delay period and an initialDelay period. This functions
like the normal java Timer.
@param task
@param initialDelay
@param fixedDelay | public void schedule(BackoffTask task, long initialDelay, long fixedDelay) {
synchronized (queue) {
start();
queue.put(new DelayedTimerTask(task, initialDelay, fixedDelay));
}
} | Schedules the task with a fixed delay period and an initialDelay period. This functions
like the normal java Timer.
@param task
@param initialDelay
@param fixedDelay
public void schedule(BackoffTask task, long initialDelay, long fixedDelay) {
synchronized (queue) {
start();
queue.put(new DelayedTi... | 84 | 166 | 206 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | ef938cd623e7fc470e240416b1b71ab9222c727d3b2d3a0a2b4276543ff4502f | LGPL-3.0 | weak-copyleft | https://github.com/jclawson/hazeltask/blob/master/LGPL-LICENSE.txt |
30e9cb6871f83b34ee5ee704 | jclawson/hazeltask | hazeltask-core/src/main/java/com/hazeltask/executor/HazelcastExecutorTopologyService.java | HazelcastExecutorTopologyService.addPendingTask | https://github.com/jclawson/hazeltask/blob/801162bc54c5f1d5744a28a2844b24289d9495d7/hazeltask-core/src/main/java/com/hazeltask/executor/HazelcastExecutorTopologyService.java#L140-L146 | train | java | Add to the write ahead log (hazelcast IMap) that tracks all the outstanding tasks | public boolean addPendingTask(HazeltaskTask<GROUP> task, boolean replaceIfExists) {
if(!replaceIfExists)
return pendingTask.putIfAbsent(task.getId(), task) == null;
pendingTask.put(task.getId(), task);
return true;
} | Add to the write ahead log (hazelcast IMap) that tracks all the outstanding tasks
public boolean addPendingTask(HazeltaskTask<GROUP> task, boolean replaceIfExists) {
if(!replaceIfExists)
return pendingTask.putIfAbsent(task.getId(), task) == null;
pendingTask.put(task.getId(), task)... | 77 | 81 | 265 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 40de4ecd066007f9be6b0edeb948125616f8c13f178c3c2a2d0ad8dfa8468d89 | LGPL-3.0 | weak-copyleft | https://github.com/jclawson/hazeltask/blob/master/LGPL-LICENSE.txt |
27633f5a96b864bfcaf08696 | jclawson/hazeltask | hazeltask-core/src/main/java/com/hazeltask/executor/HazelcastExecutorTopologyService.java | HazelcastExecutorTopologyService.addPendingTaskAsync | https://github.com/jclawson/hazeltask/blob/801162bc54c5f1d5744a28a2844b24289d9495d7/hazeltask-core/src/main/java/com/hazeltask/executor/HazelcastExecutorTopologyService.java#L154-L156 | train | java | Asynchronously put the work into the pending map so we can work on submitting it to the worker
if we wanted. Could possibly cause duplicate work if we execute the work, then add to the map.
@param task
@return | public Future<HazeltaskTask<GROUP>> addPendingTaskAsync(HazeltaskTask<GROUP> task) {
return pendingTask.putAsync(task.getId(), task);
} | Asynchronously put the work into the pending map so we can work on submitting it to the worker
if we wanted. Could possibly cause duplicate work if we execute the work, then add to the map.
@param task
@return
public Future<HazeltaskTask<GROUP>> addPendingTaskAsync(HazeltaskTask<GROUP> task) {
return pendingT... | 85 | 210 | 147 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 7d52408b54f076889bc94b5f3cd370a88c99da1c17bee0609e026cf0b5c0ec59 | LGPL-3.0 | weak-copyleft | https://github.com/jclawson/hazeltask/blob/master/LGPL-LICENSE.txt |
c522a54f702c8770d5b276c9 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveManufacturerSpecificCommandClass.java | ZWaveManufacturerSpecificCommandClass.handleApplicationCommandRequest | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveManufacturerSpecificCommandClass.java#L94-L128 | train | java | {@inheritDoc} | @Override
public void handleApplicationCommandRequest(SerialMessage serialMessage,
int offset, int endpoint) {
logger.trace("Handle Message Manufacture Specific Request");
logger.debug(String.format("Received Manufacture Specific Information for Node ID = %d", this.getNode().getNodeId()));
int command ... | {@inheritDoc}
@Override
public void handleApplicationCommandRequest(SerialMessage serialMessage,
int offset, int endpoint) {
logger.trace("Handle Message Manufacture Specific Request");
logger.debug(String.format("Received Manufacture Specific Information for Node ID = %d", this.getNode().getNodeId()));
... | 423 | 13 | 1,819 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0b7dc1c0647c6c9e640665797c6b86f37dea862a51b73299d894a3f18af380ad | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
613238209bf3494c804215a2 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorTime.java | DPTXlatorTime.useValueFormat | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorTime.java#L158-L168 | train | java | Sets a user defined time value format used by all instances of this class.
<p>
The pattern is specified according to {@link SimpleDateFormat}. Subsequent time
information, supplied and returned in textual representation, will use a layout
formatted according this pattern.<br>
Note, the format will rely on calendar defa... | public static final synchronized void useValueFormat(String pattern)
{
if (pattern == null)
sdf = null;
else if (sdf == null) {
sdf = new SimpleDateFormat(pattern);
sdf.setCalendar(getCalendar());
}
else
sdf.applyPattern(pattern);
} | Sets a user defined time value format used by all instances of this class.
<p>
The pattern is specified according to {@link SimpleDateFormat}. Subsequent time
information, supplied and returned in textual representation, will use a layout
formatted according this pattern.<br>
Note, the format will rely on calendar defa... | 190 | 595 | 264 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | fa68cfe3fb13e48360367b1fb86b524954cd8f74d33e918ea3a24ca2bbeee789 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
a75b6733f5b2d5c2ae8eb4fd | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorTime.java | DPTXlatorTime.getAllValues | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorTime.java#L173-L179 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.dptxlator.DPTXlator#getAllValues() | public String[] getAllValues()
{
final String[] buf = new String[data.length / 3];
for (int i = 0; i < buf.length; ++i)
buf[i] = fromDPT(i);
return buf;
} | /* (non-Javadoc)
@see tuwien.auto.calimero.dptxlator.DPTXlator#getAllValues()
public String[] getAllValues()
{
final String[] buf = new String[data.length / 3];
for (int i = 0; i < buf.length; ++i)
buf[i] = fromDPT(i);
return buf;
} | 81 | 77 | 171 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 52725dd23252d6f2d7e27b43fd5b9e8eba19a535ddb112fe582e6ae5e40bb5f3 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
d6c92ab8ef6d289557ac4566 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorTime.java | DPTXlatorTime.setValue | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorTime.java#L194-L197 | train | java | Sets the day of week, hour, minute and second information for the first time item.
<p>
Any other items in the translator are discarded on successful set.<br>
A day of week value of 0 corresponds to "no-day", indicating the day of week is not
used. The first day of week is Monday with a value of 1, the last day is Sunda... | public final void setValue(int dayOfWeek, int hour, int minute, int second)
{
data = set(dayOfWeek, hour, minute, second, new short[3], 0);
} | Sets the day of week, hour, minute and second information for the first time item.
<p>
Any other items in the translator are discarded on successful set.<br>
A day of week value of 0 corresponds to "no-day", indicating the day of week is not
used. The first day of week is Monday with a value of 1, the last day is Sunda... | 208 | 546 | 148 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 6733cb4f22eca04cb2c826e1c143e6c8ad46938dbfde9d38a1ab02785b61e376 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
779f048a634d35f341132c82 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorTime.java | DPTXlatorTime.getData | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorTime.java#L301-L460 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.dptxlator.DPTXlator#getData(byte[], int) | public byte[] getData(byte[] dst, int offset)
{
final int end = Math.min(data.length, dst.length - offset) / 3 * 3;
for (int i = 0; i < end; ++i)
dst[offset + i] = (byte) data[i];
return dst;
}
/* (non-Javadoc)
* @see tuwien.auto.calimero.dptxlator.DPTXlator#getSubTypes()
*/
public Map getS... | /* (non-Javadoc)
@see tuwien.auto.calimero.dptxlator.DPTXlator#getData(byte[], int)
public byte[] getData(byte[] dst, int offset)
{
final int end = Math.min(data.length, dst.length - offset) / 3 * 3;
for (int i = 0; i < end; ++i)
dst[offset + i] = (byte) data[i];
return dst;
}
/* (non-Javadoc)
... | 1,392 | 83 | 4,735 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | d5857ab2d0fcc654c149dbb8d1e55c00f01e34d3af54ca60d57fc5d50518b07a | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
83b332ac5439343d65ca4661 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/KNXnetIPTunnel.java | KNXnetIPTunnel.send | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/KNXnetIPTunnel.java#L164-L172 | train | java | Sends a cEMI frame to the remote server communicating with this endpoint.
<p>
Sending in busmonitor mode is not permitted.<br>
@param frame cEMI message to send, the expected cEMI type is according to the used
tunneling layer | public void send(CEMI frame, BlockingMode mode) throws KNXTimeoutException,
KNXConnectionClosedException
{
if (layer == BUSMONITOR_LAYER)
throw new KNXIllegalStateException("send not permitted in busmonitor mode");
if (!(frame instanceof CEMILData))
throw new KNXIllegalArgumentException("unsupported ... | Sends a cEMI frame to the remote server communicating with this endpoint.
<p>
Sending in busmonitor mode is not permitted.<br>
@param frame cEMI message to send, the expected cEMI type is according to the used
tunneling layer
public void send(CEMI frame, BlockingMode mode) throws KNXTimeoutException,
KNXConnection... | 141 | 226 | 364 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e44ef4d65eeb04f8e49f789c50508cd95e885234ad6f98571f6bc0bc91a5f55e | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
5f5d0e1e7dbdf8abc2063fbc | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/KNXnetIPTunnel.java | KNXnetIPTunnel.handleService | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/KNXnetIPTunnel.java#L186-L248 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.knxnetip.ConnectionImpl#handleService
(tuwien.auto.calimero.knxnetip.servicetype.KNXnetIPHeader, byte[], int) | void handleService(KNXnetIPHeader h, byte[] data, int offset)
throws KNXFormatException, IOException
{
final int svc = h.getServiceType();
if (svc == KNXnetIPHeader.TUNNELING_REQ) {
ServiceRequest req;
try {
req = PacketHelper.getServiceRequest(h, data, offset);
}
catch (final KNXFormatE... | /* (non-Javadoc)
@see tuwien.auto.calimero.knxnetip.ConnectionImpl#handleService
(tuwien.auto.calimero.knxnetip.servicetype.KNXnetIPHeader, byte[], int)
void handleService(KNXnetIPHeader h, byte[] data, int offset)
throws KNXFormatException, IOException
{
final int svc = h.getServiceType();
if (svc == KNXne... | 726 | 152 | 2,570 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | bcb3f5528dad5c2db3b5ebf6ee713ee16ad03bf6deb5b934c7f507add14de8c4 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
eb45ddae8742608c893eebad | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java | KNXNetworkLinkIP.setKNXMedium | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java#L292-L300 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#setKNXMedium
(tuwien.auto.calimero.link.medium.KNXMediumSettings) | public void setKNXMedium(KNXMediumSettings settings)
{
if (settings == null)
throw new KNXIllegalArgumentException("medium settings are mandatory");
if (medium != null && !settings.getClass().isAssignableFrom(medium.getClass())
&& !medium.getClass().isAssignableFrom(settings.getClass()))
throw new K... | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#setKNXMedium
(tuwien.auto.calimero.link.medium.KNXMediumSettings)
public void setKNXMedium(KNXMediumSettings settings)
{
if (settings == null)
throw new KNXIllegalArgumentException("medium settings are mandatory");
if (medium != null && !settin... | 119 | 128 | 391 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 7d0558f1388c426c088ca145ebc91b72575de80e919a9b13c3cb92a23740dfeb | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
75543a12d3166b38dbe9bdfb | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java | KNXNetworkLinkIP.setHopCount | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java#L331-L337 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#setHopCount(int) | public final void setHopCount(int count)
{
if (count < 0 || count > 7)
throw new KNXIllegalArgumentException("hop count out of range [0..7]");
hopCount = (byte) count;
logger.info("hop count set to " + count);
} | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#setHopCount(int)
public final void setHopCount(int count)
{
if (count < 0 || count > 7)
throw new KNXIllegalArgumentException("hop count out of range [0..7]");
hopCount = (byte) count;
logger.info("hop count set to " + count);
} | 91 | 79 | 228 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0c7a55532c51598a1ec966cdb11e769f1bc4267d0ddbe58c8908fa2b18627480 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
f23ef65283a26c59cec396b8 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java | KNXNetworkLinkIP.sendRequest | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java#L352-L356 | train | java | {@inheritDoc} When communicating with a KNX network which uses open medium,
messages are broadcasted within domain (as opposite to system broadcast) by
default. Specify <code>dst null</code> for system broadcast. | public void sendRequest(KNXAddress dst, Priority p, byte[] nsdu)
throws KNXLinkClosedException, KNXTimeoutException
{
send(dst, p, nsdu, false);
} | {@inheritDoc} When communicating with a KNX network which uses open medium,
messages are broadcasted within domain (as opposite to system broadcast) by
default. Specify <code>dst null</code> for system broadcast.
public void sendRequest(KNXAddress dst, Priority p, byte[] nsdu)
throws KNXLinkClosedException, KNXTime... | 90 | 212 | 156 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5cc42d250cf87144f81a6f7c4d0e1c6a7a0dcf8ad9310e7fe51951ffc0749958 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
b38a0366f5782494146a979a | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java | KNXNetworkLinkIP.sendRequestWait | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java#L363-L367 | train | java | {@inheritDoc} When communicating with a KNX network which uses open medium,
messages are broadcasted within domain (as opposite to system broadcast) by
default. Specify <code>dst null</code> for system broadcast. | public void sendRequestWait(KNXAddress dst, Priority p, byte[] nsdu)
throws KNXTimeoutException, KNXLinkClosedException
{
send(dst, p, nsdu, true);
} | {@inheritDoc} When communicating with a KNX network which uses open medium,
messages are broadcasted within domain (as opposite to system broadcast) by
default. Specify <code>dst null</code> for system broadcast.
public void sendRequestWait(KNXAddress dst, Priority p, byte[] nsdu)
throws KNXTimeoutException, KNXLin... | 91 | 212 | 159 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a83f79441b3c69c4a9ab4806ea913d2ce173e2a0fe5a1b5fc2c06ba610387efc | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
6192d539d1c4003c41ca54e7 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java | KNXNetworkLinkIP.send | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java#L373-L377 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#send
(tuwien.auto.calimero.cemi.CEMILData, boolean) | public void send(CEMILData msg, boolean waitForCon) throws KNXTimeoutException,
KNXLinkClosedException
{
doSend(adjustMsgType(msg), waitForCon);
} | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#send
(tuwien.auto.calimero.cemi.CEMILData, boolean)
public void send(CEMILData msg, boolean waitForCon) throws KNXTimeoutException,
KNXLinkClosedException
{
doSend(adjustMsgType(msg), waitForCon);
} | 82 | 114 | 156 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 894ff8b9913fbdc20d806c4a3a5541c56ca7ac66015e37541ac2f967405dc708 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
bb98c1b08ad435e855074e8c | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java | KNXNetworkLinkIP.getName | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java#L382-L387 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#getName() | public String getName()
{
// do our own IP:port string, since InetAddress.toString() always prepends a '/'
final InetSocketAddress a = conn.getRemoteAddress();
return "link " + a.getAddress().getHostAddress() + ":" + a.getPort();
} | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#getName()
public String getName()
{
// do our own IP:port string, since InetAddress.toString() always prepends a '/'
final InetSocketAddress a = conn.getRemoteAddress();
return "link " + a.getAddress().getHostAddress() + ":" + a.getPort();
} | 81 | 72 | 244 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e5501f3ae300d12df26f8cf6bae07191b197b5c777b25ff35cbc0b602fb5a6fd | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
81ddabbb258c65e6d62c903a | phax/ph-xmldsig | src/main/java/com/helger/xmldsig/XMLDSigCreator.java | XMLDSigCreator.applyXMLDSigAsFirstChild | https://github.com/phax/ph-xmldsig/blob/c00677fe3dac5aef0f3039b08a03e90052473952/src/main/java/com/helger/xmldsig/XMLDSigCreator.java#L257-L289 | train | java | Apply an XMLDSig onto the passed document.
@param aPrivateKey
The private key used for signing. May not be <code>null</code>.
@param aCertificate
The certificate to be used. May not be <code>null</code>.
@param aDocument
The document to be signed. The signature will always be the first
child element of the document el... | public void applyXMLDSigAsFirstChild (@Nonnull final PrivateKey aPrivateKey,
@Nonnull final X509Certificate aCertificate,
@Nonnull final Document aDocument) throws Exception
{
ValueEnforcer.notNull (aPrivateKey, "privateKey");
Val... | Apply an XMLDSig onto the passed document.
@param aPrivateKey
The private key used for signing. May not be <code>null</code>.
@param aCertificate
The certificate to be used. May not be <code>null</code>.
@param aDocument
The document to be signed. The signature will always be the first
child element of the document el... | 464 | 508 | 1,895 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5cb1333cf5432ae477a0e49d0b3c4d456f8e14e7f61b9080d7101c8bfedca4b1 | Apache-2.0 | permissive | https://github.com/phax/ph-xmldsig/blob/master/LICENSE |
bcac014d1628568c9b133bb4 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalPatternArgumentException.java | IllegalPatternArgumentException.determineMessage | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalPatternArgumentException.java#L61-L63 | train | java | Determines the message to be used, depending on the passed argument name. If if the given argument name is
{@code null} or empty {@code DEFAULT_MESSAGE} will be returned, otherwise a formatted {@code MESSAGE_WITH_NAME}
with the passed name and pattern which the argument must match.
@param argumentName
the name of the ... | private static String determineMessage(@Nullable final String argumentName, @Nullable final Pattern pattern) {
return argumentName != null && !argumentName.isEmpty() ? format(argumentName, pattern) : format(pattern);
} | Determines the message to be used, depending on the passed argument name. If if the given argument name is
{@code null} or empty {@code DEFAULT_MESSAGE} will be returned, otherwise a formatted {@code MESSAGE_WITH_NAME}
with the passed name and pattern which the argument must match.
@param argumentName
the name of the ... | 158 | 549 | 221 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 86fa2c6106c461f70412bb0d8c5faf4ea4071057d4f33ed8e89197cf17cdd4ed | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
7d660d52fbe65b08d03166fe | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalPatternArgumentException.java | IllegalPatternArgumentException.format | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalPatternArgumentException.java#L75-L77 | train | java | Returns the formatted string {@link IllegalPatternArgumentException#DEFAULT_MESSAGE} with the given pattern which
the argument must match.
@param argumentName
the name of the passed argument
@param pattern
Pattern, that a string or character sequence should correspond to
@return a formatted string of message with the ... | private static String format(@Nullable final Pattern pattern) {
return String.format(DEFAULT_MESSAGE, patternToString(pattern));
} | Returns the formatted string {@link IllegalPatternArgumentException#DEFAULT_MESSAGE} with the given pattern which
the argument must match.
@param argumentName
the name of the passed argument
@param pattern
Pattern, that a string or character sequence should correspond to
@return a formatted string of message with the ... | 86 | 339 | 133 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 7155afbdee69b52e605862c53c0b8fbde6ada8f62511ac10e2c73eb6eb0f5b2d | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
1c9ac18e4446ab589b26713c | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalPatternArgumentException.java | IllegalPatternArgumentException.format | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalPatternArgumentException.java#L89-L92 | train | java | Returns the formatted string {@link IllegalPatternArgumentException#MESSAGE_WITH_NAME} with the given
{@code argumentName} and pattern which the argument must match.
@param argumentName
the name of the passed argument
@param pattern
Pattern, that a string or character sequence should correspond to
@return a formatted ... | private static String format(@Nullable final String argumentName, @Nullable final Pattern pattern) {
final String p = patternToString(pattern);
return String.format(MESSAGE_WITH_NAME, argumentName, p);
} | Returns the formatted string {@link IllegalPatternArgumentException#MESSAGE_WITH_NAME} with the given
{@code argumentName} and pattern which the argument must match.
@param argumentName
the name of the passed argument
@param pattern
Pattern, that a string or character sequence should correspond to
@return a formatted ... | 112 | 366 | 208 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5425a796bf68d04daea712272a4f2f2c53841dcdefe8dd70bb93574d806c07c7 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
6ac11017b67db0dcf0fd57bd | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalPatternArgumentException.java | IllegalPatternArgumentException.patternToString | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalPatternArgumentException.java#L101-L103 | train | java | Converts a {@link Pattern} to a string representation.
@param pattern
Pattern
@return string representation of a pattern | private static String patternToString(@Nullable final Pattern pattern) {
return pattern != null ? pattern.pattern() + " (flags: " + pattern.flags() + ")" : NO_PATTERN_PLACEHOLDER;
} | Converts a {@link Pattern} to a string representation.
@param pattern
Pattern
@return string representation of a pattern
private static String patternToString(@Nullable final Pattern pattern) {
return pattern != null ? pattern.pattern() + " (flags: " + pattern.flags() + ")" : NO_PATTERN_PLACEHOLDER;
} | 65 | 121 | 184 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 32e683ae4d9444943f96b38f1ead2bd8b61de3664ac4125042ddbd3763effa40 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
c0591868c952dd561caac8f3 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator.java | DPTXlator.setValues | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator.java#L168-L176 | train | java | Translates the array of strings according to the set datapoint ID.
<p>
If, and only if, all items in <code>values</code> can successfully be translated,
they get stored by the translator, replacing any old items. On
<code>values.length == 0</code>, no action is performed.<br>
Textual commands contained in <code>values<... | public void setValues(String[] values) throws KNXFormatException
{
if (values.length > 0) {
final short[] buf = new short[(typeSize > 0 ? typeSize : 1) * values.length];
for (int i = 0; i < values.length; ++i)
toDPT(values[i], buf, i);
data = buf;
}
} | Translates the array of strings according to the set datapoint ID.
<p>
If, and only if, all items in <code>values</code> can successfully be translated,
they get stored by the translator, replacing any old items. On
<code>values.length == 0</code>, no action is performed.<br>
Textual commands contained in <code>values<... | 230 | 585 | 278 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | fb1bd54294db1eaf9aa8adab3b62cc1ef4c2cf430d04673672e9fa83712fa98f | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
7a01ae4ddc03b73c6f1b6ca5 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator.java | DPTXlator.setValue | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator.java#L203-L208 | train | java | Translates the <code>value</code> according to the set datapoint ID.
<p>
If, and only if, <code>value</code> can successfully be translated, it gets
stored by the translator, replacing any old items. Textual commands contained in
<code>value</code> are treated case insensitive.<br>
The <code>value</code> string might h... | public void setValue(String value) throws KNXFormatException
{
final short[] buf = new short[typeSize > 0 ? typeSize : 1];
toDPT(value, buf, 0);
data = buf;
} | Translates the <code>value</code> according to the set datapoint ID.
<p>
If, and only if, <code>value</code> can successfully be translated, it gets
stored by the translator, replacing any old items. Textual commands contained in
<code>value</code> are treated case insensitive.<br>
The <code>value</code> string might h... | 199 | 612 | 171 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 572d4e9fdca8fd1c781596778951ea8262d53ca1fcc0b598c3b0534d913daca8 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
cfadb228178ae359e67b33e1 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator.java | DPTXlator.setTypeID | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator.java#L405-L415 | train | java | Sets the DPT for the translator to use for translation, doing a lookup before in
the translator's map containing the available, implemented datapoint types.
<p>
@param availableTypes map of the translator with available, implemented DPTs; the
map key is a dptID string, map value is of type {@link DPT}
@param dptID the... | protected void setTypeID(Map availableTypes, String dptID) throws KNXFormatException
{
final DPT t = (DPT) availableTypes.get(dptID);
if (t == null) {
// don't call logThrow since dpt is not set yet
final String s = "DPT " + dptID + " is not available";
logger.warn(s);
throw new KNXFormatExcepti... | Sets the DPT for the translator to use for translation, doing a lookup before in
the translator's map containing the available, implemented datapoint types.
<p>
@param availableTypes map of the translator with available, implemented DPTs; the
map key is a dptID string, map value is of type {@link DPT}
@param dptID the... | 204 | 410 | 354 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b694a456faedd1f54e0dfd34e677b8d81e8a9959d8bac3d557be93bbd52dd9ad | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
262f097b9d44705289c265d0 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator.java | DPTXlator.removeUnit | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator.java#L452-L459 | train | java | Returns value with unit cut off at end of string, if current DPT has a unit
specified.
<p>
Whitespace are removed from both ends.
@param value value string representation
@return trimmed value string without unit | final String removeUnit(String value)
{
final int i;
if (dpt.getUnit().length() > 0 && (i = value.lastIndexOf(dpt.getUnit())) > -1)
return value.substring(0, i).trim();
// java number parsing routines are really picky, remove WS
return value.trim();
} | Returns value with unit cut off at end of string, if current DPT has a unit
specified.
<p>
Whitespace are removed from both ends.
@param value value string representation
@return trimmed value string without unit
final String removeUnit(String value)
{
final int i;
if (dpt.getUnit().length() > 0 && (i = value... | 118 | 213 | 271 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 834895178d03a937a23ff9299c378cfca149bf5e8da30dd88a93f9e7b3f9b54a | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
e62dc9127e0e2d1ae18a2d45 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator.java | DPTXlator.logThrow | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator.java#L477-L487 | train | java | Helper which logs message and creates a format exception.
<p>
Adds the current dpt ID as prefix to log output.
@param level log level
@param msg log output, exception message if <code>excMsg</code> is
<code>null</code>
@param excMsg exception message, if <code>null</code> <code>msg</code> is used
@param item item in K... | final KNXFormatException logThrow(LogLevel level, String msg, String excMsg,
String item)
{
final KNXFormatException e =
new KNXFormatException(excMsg != null ? excMsg : msg, item);
if (excMsg != null)
logger.log(level, dpt.getID() + " - " + msg, e);
else
logger.log(level, dpt.getID() + " - " ... | Helper which logs message and creates a format exception.
<p>
Adds the current dpt ID as prefix to log output.
@param level log level
@param msg log output, exception message if <code>excMsg</code> is
<code>null</code>
@param excMsg exception message, if <code>null</code> <code>msg</code> is used
@param item item in K... | 189 | 365 | 344 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e9b89f90a8392c9e93278d635fe5bc93c564def25a47c449b774cfc60cb8493a | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
61b752b9237da623fb52d31c | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator4ByteUnsigned.java | DPTXlator4ByteUnsigned.getData | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator4ByteUnsigned.java#L184-L242 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.dptxlator.DPTXlator#getData(byte[], int) | public byte[] getData(byte[] dst, int offset)
{
final int end = Math.min(data.length, dst.length - offset) & ~0x03;
for (int i = 0; i < end; ++i)
dst[offset + i] = (byte) data[i];
return dst;
}
/* (non-Javadoc)
* @see tuwien.auto.calimero.dptxlator.DPTXlator#getSubTypes()
*/
public final Ma... | /* (non-Javadoc)
@see tuwien.auto.calimero.dptxlator.DPTXlator#getData(byte[], int)
public byte[] getData(byte[] dst, int offset)
{
final int end = Math.min(data.length, dst.length - offset) & ~0x03;
for (int i = 0; i < end; ++i)
dst[offset + i] = (byte) data[i];
return dst;
}
/* (non-Javadoc)
... | 518 | 83 | 1,597 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 67cb0dd4a60c1028ab70d212a1bafe0f85fc980bf74ed773f581a417b73dcb5d | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
d32f0e2616d8ce12e7b6feb5 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyMapUtils.java | MyMapUtils.rankMapOnIntegerValue | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyMapUtils.java#L36-L42 | train | java | Ranks a map based on integer values
@param inputMap Input
@return The ranked map | public static <K> Map<K, Integer> rankMapOnIntegerValue(Map<K, Integer> inputMap) {
Map<K, Integer> newMap = new TreeMap<K, Integer>(new IntegerValueComparator(inputMap));
newMap.putAll(inputMap);
Map<K, Integer> linkedMap = new LinkedHashMap<K, Integer>(newMap);
return linkedMap;
} | Ranks a map based on integer values
@param inputMap Input
@return The ranked map
public static <K> Map<K, Integer> rankMapOnIntegerValue(Map<K, Integer> inputMap) {
Map<K, Integer> newMap = new TreeMap<K, Integer>(new IntegerValueComparator(inputMap));
newMap.putAll(inputMap);
Map<K, Integer> linkedMap = ... | 98 | 80 | 302 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3a69cedbc7c8dfa991aebc2a037809c44365dce4b4ef1af794ea843cfc44dbd1 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
143943def3339b53f36d1d9a | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyMapUtils.java | IntegerValueComparator.compare | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyMapUtils.java#L57-L64 | train | java | /* (non-Javadoc)
@see java.util.Comparator#compare(java.lang.Object, java.lang.Object) | @Override
public int compare(Object a, Object b) {
if (base.get(a) >= base.get(b)) {
return -1;
}
return 1;
} | /* (non-Javadoc)
@see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
@Override
public int compare(Object a, Object b) {
if (base.get(a) >= base.get(b)) {
return -1;
}
return 1;
} | 61 | 86 | 136 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 25a4e5ed83023d98db86076dac73594e6801f6bd474e4f105fe26bfe368da501 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
16992f9fd691277c712f0ddd | thorstenwagner/TraJ | src/main/java/de/biomedical_imaging/traJ/simulation/AbstractSphereObstacle.java | AbstractSphereObstacle.intersectionVolume | https://github.com/thorstenwagner/TraJ/blob/505fafb1f2f77a2d67bb2a089a2fdebe2c9bc7cb/src/main/java/de/biomedical_imaging/traJ/simulation/AbstractSphereObstacle.java#L87-L118 | train | java | For 2D: Implements formula 14 of http://mathworld.wolfram.com/Circle-CircleIntersection.html
For 3D: Implements formula 16 of http://mathworld.wolfram.com/Sphere-SphereIntersection.html | public double intersectionVolume(AbstractSphereObstacle o) {
if(dimension != o.getDimension()){
throw new IllegalArgumentException("Obstacles have different dimensions");
}
double result = 0;
double distance = 0;
for(int i = 0; i < dimension; i++){
distance += Math.pow(position[i]-o.getPosition()[i],... | For 2D: Implements formula 14 of http://mathworld.wolfram.com/Circle-CircleIntersection.html
For 3D: Implements formula 16 of http://mathworld.wolfram.com/Sphere-SphereIntersection.html
public double intersectionVolume(AbstractSphereObstacle o) {
if(dimension != o.getDimension()){
throw new IllegalArgumentExce... | 357 | 185 | 902 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | ef5fef1d135c54f62ced21baa4e4e3173eddb7b6acbfc809e6e052fed789f2a4 | MIT | permissive | https://github.com/thorstenwagner/TraJ/blob/master/license.txt |
0adaca00ca3380cbf1f4d5d0 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/ConnectRequest.java | ConnectRequest.toByteArray | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/ConnectRequest.java#L184-L193 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.knxnetip.servicetype.ServiceType#toByteArray
(java.io.ByteArrayOutputStream) | byte[] toByteArray(ByteArrayOutputStream os)
{
byte[] buf = ctrlPt.toByteArray();
os.write(buf, 0, buf.length);
buf = dataPt.toByteArray();
os.write(buf, 0, buf.length);
buf = cri.toByteArray();
os.write(buf, 0, buf.length);
return os.toByteArray();
} | /* (non-Javadoc)
@see tuwien.auto.calimero.knxnetip.servicetype.ServiceType#toByteArray
(java.io.ByteArrayOutputStream)
byte[] toByteArray(ByteArrayOutputStream os)
{
byte[] buf = ctrlPt.toByteArray();
os.write(buf, 0, buf.length);
buf = dataPt.toByteArray();
os.write(buf, 0, buf.length);
buf = cri.to... | 105 | 119 | 276 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 1e84c43cf930da323fd06ca9a8c5d239d9afaf3ace1638d74936bd0056c084b1 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
b226d358c3d195f47de5ab3e | ow2-chameleon/fuchsia | tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java | FuchsiaGogoCommand.declarations | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java#L80-L97 | train | java | ---------------- DECLARATION | @Descriptor("Gets info about the declarations available")
public void declarations(@Descriptor("declarations [--type import|export]") String... parameters) {
String type = getArgumentValue("--type", parameters);
try {
if ((type == null) || "import".equals(type)) {
List<Se... | ---------------- DECLARATION
@Descriptor("Gets info about the declarations available")
public void declarations(@Descriptor("declarations [--type import|export]") String... parameters) {
String type = getArgumentValue("--type", parameters);
try {
if ((type == null) || "import".equals(ty... | 165 | 28 | 847 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 26fb2ce5fb40959fe22ba31f0f651decc5e45c6f5586f3336d5a246e07a3b556 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
9ba47a4a02ef8d3b9529349c | ow2-chameleon/fuchsia | tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java | FuchsiaGogoCommand.linker | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java#L240-L266 | train | java | ---------------- LINKER | @Descriptor("Gets the importation/exportation linker available")
public void linker(@Descriptor("linker [-(import|export)] [ID name]") String... parameters) {
List<ServiceReference> exportationLinkerRef = getAllServiceRefs(ExportationLinker.class);
List<ServiceReference> importationLinkerRef = getAl... | ---------------- LINKER
@Descriptor("Gets the importation/exportation linker available")
public void linker(@Descriptor("linker [-(import|export)] [ID name]") String... parameters) {
List<ServiceReference> exportationLinkerRef = getAllServiceRefs(ExportationLinker.class);
List<ServiceReference> imp... | 281 | 23 | 1,524 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 7c1afc55ede4ca280fca28600687cb04ede2bc92620b53b37033886b2f267389 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
7e618d83efb42e08bea52570 | ow2-chameleon/fuchsia | tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java | FuchsiaGogoCommand.discovery | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java#L270-L287 | train | java | ---------------- DISCOVERY | @Descriptor("Gets the discovery available in the platform")
public void discovery(@Descriptor("discovery [discovery name]") String... parameters) {
List<ServiceReference> discoveryRef = getAllServiceRefs(DiscoveryService.class);
StringBuilder sbFinal = new StringBuilder();
if (discoveryRef.i... | ---------------- DISCOVERY
@Descriptor("Gets the discovery available in the platform")
public void discovery(@Descriptor("discovery [discovery name]") String... parameters) {
List<ServiceReference> discoveryRef = getAllServiceRefs(DiscoveryService.class);
StringBuilder sbFinal = new StringBuilder()... | 146 | 26 | 807 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | adab064a3f6b97ab84776231e664f2c54c2cf0f4306640491d88cff17be624e5 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
b000eebc6ed5363082005f99 | ow2-chameleon/fuchsia | tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java | FuchsiaGogoCommand.importer | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java#L291-L307 | train | java | ---------------- IMPORTER | @Descriptor("Gets the importer available in the platform")
public void importer(@Descriptor("importer [importer name]") String... parameters) {
Map<ServiceReference, ImporterService> importerRefsAndServices = getAllServiceRefsAndServices(ImporterService.class);
StringBuilder sbFinal = new StringBuil... | ---------------- IMPORTER
@Descriptor("Gets the importer available in the platform")
public void importer(@Descriptor("importer [importer name]") String... parameters) {
Map<ServiceReference, ImporterService> importerRefsAndServices = getAllServiceRefsAndServices(ImporterService.class);
StringBuild... | 188 | 25 | 982 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 7387e134a05968c19637787535675dd667f51d916ed23e524a43a6080f6fdb2a | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
746c820eeaeff0ed4afe469a | ow2-chameleon/fuchsia | tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java | FuchsiaGogoCommand.exporter | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java#L311-L327 | train | java | ---------------- EXPORTER | @Descriptor("Gets the exporter available in the platform")
public void exporter(@Descriptor("exporter [exporter name]") String... parameters) {
Map<ServiceReference, ExporterService> exporterRefsAndServices = getAllServiceRefsAndServices(ExporterService.class);
StringBuilder sbFinal = new StringBuil... | ---------------- EXPORTER
@Descriptor("Gets the exporter available in the platform")
public void exporter(@Descriptor("exporter [exporter name]") String... parameters) {
Map<ServiceReference, ExporterService> exporterRefsAndServices = getAllServiceRefsAndServices(ExporterService.class);
StringBuild... | 183 | 25 | 970 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | fcdd948c46fd729a66f1cbc0a4ed6a6e1b99b53cb8ebe9c0726e6461a8ebb7de | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
a207f387c3cec897c9f4feef | ow2-chameleon/fuchsia | tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java | FuchsiaGogoCommand.sendmessage | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java#L331-L349 | train | java | ---------------- SEND MESSAGE | @Descriptor("Send event admin messages")
public void sendmessage(@Descriptor("sendmessage BUS [KEY=VALUE ]*") String... parameters) {
assert parameters[0] != null;
String bus = parameters[0];
Dictionary eventAdminPayload = new Hashtable();
for (String m : parameters) {
if... | ---------------- SEND MESSAGE
@Descriptor("Send event admin messages")
public void sendmessage(@Descriptor("sendmessage BUS [KEY=VALUE ]*") String... parameters) {
assert parameters[0] != null;
String bus = parameters[0];
Dictionary eventAdminPayload = new Hashtable();
for (String m... | 182 | 29 | 895 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 770d3962f2ffca0aceb8fb7eaa4cf6613de0fde6a52901ff8583dab2e31c0262 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
72313d97c5e3d058045bd666 | ow2-chameleon/fuchsia | tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java | FuchsiaGogoCommand.getAllServiceRefs | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java#L354-L366 | train | java | ---------------- UTILS SERVICES | private <T> List<ServiceReference> getAllServiceRefs(Class<T> klass) {
ServiceReference[] importDeclarationsRef;
try {
importDeclarationsRef = context.getAllServiceReferences(klass.getName(), null);
} catch (InvalidSyntaxException e) {
LOG.error("Failed to retrieved servi... | ---------------- UTILS SERVICES
private <T> List<ServiceReference> getAllServiceRefs(Class<T> klass) {
ServiceReference[] importDeclarationsRef;
try {
importDeclarationsRef = context.getAllServiceReferences(klass.getName(), null);
} catch (InvalidSyntaxException e) {
LOG... | 114 | 31 | 580 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 649b463278271d939252d0cf400e52100694cfb0641a81e78b7aebd338fca3f2 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
540c561771df0fa987c9e118 | ow2-chameleon/fuchsia | tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java | FuchsiaGogoCommand.displayServiceProperties | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java#L386-L398 | train | java | ---------------- UTILS DISPLAY | private static StringBuilder displayServiceProperties(ServiceReference reference) {
StringBuilder sb = new StringBuilder();
for (String propertyKey : reference.getPropertyKeys()) {
sb.append(String.format("%s = %s%n", propertyKey, reference.getProperty(propertyKey)));
}
if ... | ---------------- UTILS DISPLAY
private static StringBuilder displayServiceProperties(ServiceReference reference) {
StringBuilder sb = new StringBuilder();
for (String propertyKey : reference.getPropertyKeys()) {
sb.append(String.format("%s = %s%n", propertyKey, reference.getProperty(prope... | 84 | 30 | 431 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5bf2e6a50917d5a614b3151063d23826846a5b8fb829e0aba686b03d74359e65 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
22d42727eb023fdc5d41c87e | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/PropClient.java | PropClient.main | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/PropClient.java#L155-L167 | train | java | Entry point for running the PropClient.
<p>
An IP host or port identifier has to be supplied to specify the endpoint for the
KNX network access.<br>
To show the usage message of this tool on the console, supply the command line
option -help (or -h).<br>
Command line options are treated case sensitive. Available options... | public static void main(String[] args)
{
try {
// read the command line options and run the client
final Map options = new HashMap();
if (parseOptions(args, options))
new PropClient().run(options);
}
catch (final Throwable t) {
if (t.getMessage() != null)
System.out.println(t.getMes... | Entry point for running the PropClient.
<p>
An IP host or port identifier has to be supplied to specify the endpoint for the
KNX network access.<br>
To show the usage message of this tool on the console, supply the command line
option -help (or -h).<br>
Command line options are treated case sensitive. Available options... | 580 | 1,697 | 337 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 63dd18e9ea698a885151e844d089f9784fe22e059c1d1814e4c27a7c026d3498 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
674b7b715194a5f24998d823 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/PropClient.java | PropClient.create | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/PropClient.java#L243-L260 | train | java | Creates the property adapter to be used with the property client depending on the
supplied user <code>options</code>.
<p>
There are two types of property adapters. One uses KNXnet/IP local device
management to access KNX properties in an interface object, the other type uses
remote property services. The remote adapter... | private PropertyAdapter create(Map options) throws KNXException
{
// add a log writer for the console (System.out), setting a
// user log level, if specified
LogManager.getManager().addWriter(null,
new ConsoleWriter(options.containsKey("verbose")));
// create local and remote socket address for use in... | Creates the property adapter to be used with the property client depending on the
supplied user <code>options</code>.
<p>
There are two types of property adapters. One uses KNXnet/IP local device
management to access KNX properties in an interface object, the other type uses
remote property services. The remote adapter... | 303 | 590 | 809 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 384f51ab289dc3903412b41707ed02266474365ee67c31f5914d4f6ce39206f8 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
14f7a8d1ff7eb42a6c849c00 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/PropClient.java | PropClient.createLocalDMAdapter | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/PropClient.java#L272-L277 | train | java | Creates a local device management adapter.
<p>
@param local local socket address
@param host remote socket address of host
@param options contains parameters for property adapter creation
@return local DM adapter
@throws KNXException on adapter creation problem | private PropertyAdapter createLocalDMAdapter(InetSocketAddress local,
InetSocketAddress host, Map options) throws KNXException
{
return new KnIPDeviceMgmtAdapter(local, host, options.containsKey("nat"),
new PropertyListener(), options.containsKey("emulatewrite"));
} | Creates a local device management adapter.
<p>
@param local local socket address
@param host remote socket address of host
@param options contains parameters for property adapter creation
@return local DM adapter
@throws KNXException on adapter creation problem
private PropertyAdapter createLocalDMAdapter(InetSocketA... | 105 | 262 | 280 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 789b50d2b3ec46b3a6d20a767bdaf86b53b260e877ccc063af16832abec3dedd | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
cdf0c48958f392a79bd4611e | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/PropClient.java | PropClient.readLine | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/PropClient.java#L329-L334 | train | java | Writes command prompt and waits for command request from user.
<p>
@param r input reader
@return array with command and command arguments
@throws IOException on I/O error | private String[] readLine(BufferedReader r) throws IOException
{
System.out.print("> ");
final String line = r.readLine();
return line != null ? split(line) : null;
} | Writes command prompt and waits for command request from user.
<p>
@param r input reader
@return array with command and command arguments
@throws IOException on I/O error
private String[] readLine(BufferedReader r) throws IOException
{
System.out.print("> ");
final String line = r.readLine();
return line !... | 76 | 171 | 179 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9cc6210a72d10b3c7d7cc8890f53f93240e781463493e47e74a1d521f71222a9 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
68ff7e125d85f6096bba5ac1 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.readBool | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L257-L264 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#readBool
(tuwien.auto.calimero.GroupAddress) | public boolean readBool(GroupAddress dst) throws KNXTimeoutException,
KNXRemoteException, KNXLinkClosedException, KNXFormatException
{
final byte[] apdu = readFromGroup(dst, priority, 0, 0);
final DPTXlatorBoolean t = new DPTXlatorBoolean(DPTXlatorBoolean.DPT_BOOL);
extractGroupASDU(apdu, t);
return t.... | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#readBool
(tuwien.auto.calimero.GroupAddress)
public boolean readBool(GroupAddress dst) throws KNXTimeoutException,
KNXRemoteException, KNXLinkClosedException, KNXFormatException
{
final byte[] apdu = readFromGroup(dst, priority, 0, 0);
f... | 128 | 115 | 342 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0a24bb5ec08302df952f560ea2337e0d3df376a76e452e83ed5f1a50da5a92fd | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
a9d18e458ed8973ae9207556 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.write | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L270-L279 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.GroupAddress, boolean) | public void write(GroupAddress dst, boolean value) throws KNXTimeoutException,
KNXLinkClosedException
{
try {
final DPTXlatorBoolean t = new DPTXlatorBoolean(DPTXlatorBoolean.DPT_BOOL);
t.setValue(value);
write(dst, priority, t);
}
catch (final KNXFormatException ignore) {}
} | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.GroupAddress, boolean)
public void write(GroupAddress dst, boolean value) throws KNXTimeoutException,
KNXLinkClosedException
{
try {
final DPTXlatorBoolean t = new DPTXlatorBoolean(DPTXlatorBoolean.DPT_BOOL);... | 114 | 121 | 304 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | ceffce73e33cba12530285fde437a9b8889d293a08613b6cb317772c489f54c6 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
82ed424e0541288f5eb70e8c | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.readUnsigned | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L285-L293 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#readUnsigned
(tuwien.auto.calimero.GroupAddress, java.lang.String) | public short readUnsigned(GroupAddress dst, String scale)
throws KNXTimeoutException, KNXRemoteException, KNXLinkClosedException,
KNXFormatException
{
final byte[] apdu = readFromGroup(dst, priority, 1, 1);
final DPTXlator8BitUnsigned t = new DPTXlator8BitUnsigned(scale);
extractGroupASDU(apdu, t);
... | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#readUnsigned
(tuwien.auto.calimero.GroupAddress, java.lang.String)
public short readUnsigned(GroupAddress dst, String scale)
throws KNXTimeoutException, KNXRemoteException, KNXLinkClosedException,
KNXFormatException
{
final byte[] apdu =... | 133 | 137 | 352 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3af7ca1c63e48a1121cc2b50ff895cf2329a42f4447fe4e02edd26383ea588f7 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
3ec24490cc1022559793e597 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.write | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L299-L305 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.GroupAddress, int, java.lang.String) | public void write(GroupAddress dst, int value, String scale)
throws KNXTimeoutException, KNXFormatException, KNXLinkClosedException
{
final DPTXlator8BitUnsigned t = new DPTXlator8BitUnsigned(scale);
t.setValue(value);
write(dst, priority, t);
} | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.GroupAddress, int, java.lang.String)
public void write(GroupAddress dst, int value, String scale)
throws KNXTimeoutException, KNXFormatException, KNXLinkClosedException
{
final DPTXlator8BitUnsigned t = new DPTXl... | 105 | 135 | 261 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 87789b2670a842cd8c7e34d4d77f800a95b2673b9dda3f0ad303ab496099c83a | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
f3129282bf54151da680ec06 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.readControl | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L311-L319 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#readControl
(tuwien.auto.calimero.GroupAddress) | public byte readControl(GroupAddress dst) throws KNXTimeoutException,
KNXRemoteException, KNXLinkClosedException, KNXFormatException
{
final byte[] apdu = readFromGroup(dst, priority, 0, 0);
final DPTXlator3BitControlled t =
new DPTXlator3BitControlled(DPTXlator3BitControlled.DPT_CONTROL_DIMMING);
ext... | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#readControl
(tuwien.auto.calimero.GroupAddress)
public byte readControl(GroupAddress dst) throws KNXTimeoutException,
KNXRemoteException, KNXLinkClosedException, KNXFormatException
{
final byte[] apdu = readFromGroup(dst, priority, 0, 0);
... | 140 | 118 | 377 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 4d501c17ee4a0c3031f30282adc49c62c4c1d7236a56ae8494f0eca9a5fa9b1b | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
5d455633e6197f78055c9484 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.write | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L325-L332 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.GroupAddress, boolean, byte) | public void write(GroupAddress dst, boolean control, byte stepcode)
throws KNXTimeoutException, KNXFormatException, KNXLinkClosedException
{
final DPTXlator3BitControlled t =
new DPTXlator3BitControlled(DPTXlator3BitControlled.DPT_CONTROL_DIMMING);
t.setValue(control, stepcode);
write(dst, priority, t... | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.GroupAddress, boolean, byte)
public void write(GroupAddress dst, boolean control, byte stepcode)
throws KNXTimeoutException, KNXFormatException, KNXLinkClosedException
{
final DPTXlator3BitControlled t =
new ... | 122 | 127 | 326 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 97714463e562c2648941ef33c3cd9354dfe1ad091025d2fa0ba0e21c4e043c98 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
0373b7e6d3157f7b2cf007b9 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.readFloat | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L338-L346 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#readFloat
(tuwien.auto.calimero.GroupAddress) | public float readFloat(GroupAddress dst) throws KNXTimeoutException,
KNXRemoteException, KNXLinkClosedException, KNXFormatException
{
final byte[] apdu = readFromGroup(dst, priority, 2, 2);
final DPTXlator2ByteFloat t =
new DPTXlator2ByteFloat(DPTXlator2ByteFloat.DPT_TEMPERATURE_DIFFERENCE);
extractGr... | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#readFloat
(tuwien.auto.calimero.GroupAddress)
public float readFloat(GroupAddress dst) throws KNXTimeoutException,
KNXRemoteException, KNXLinkClosedException, KNXFormatException
{
final byte[] apdu = readFromGroup(dst, priority, 2, 2);
f... | 138 | 116 | 370 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0a2778dce4974a63998e93cee7e7a6167cc4b9cf94d7fcc7946212e315be0b31 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
af802a4044b5928deec8d3a6 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.write | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L352-L359 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.GroupAddress, float) | public void write(GroupAddress dst, float value) throws KNXTimeoutException,
KNXFormatException, KNXLinkClosedException
{
final DPTXlator2ByteFloat t =
new DPTXlator2ByteFloat(DPTXlator2ByteFloat.DPT_TEMPERATURE_DIFFERENCE);
t.setValue(value);
write(dst, priority, t);
} | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.GroupAddress, float)
public void write(GroupAddress dst, float value) throws KNXTimeoutException,
KNXFormatException, KNXLinkClosedException
{
final DPTXlator2ByteFloat t =
new DPTXlator2ByteFloat(DPTXlator2B... | 112 | 119 | 290 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 40d4d73282e4cc864538fca28f0448aa15b1fdd49863de57206ab12faf6c6f90 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
cbfb24918ed63479c2740901 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.readString | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L365-L372 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#readString
(tuwien.auto.calimero.GroupAddress) | public String readString(GroupAddress dst) throws KNXTimeoutException,
KNXRemoteException, KNXLinkClosedException, KNXFormatException
{
final byte[] apdu = readFromGroup(dst, priority, 0, 14);
final DPTXlatorString t = new DPTXlatorString(DPTXlatorString.DPT_STRING_8859_1);
extractGroupASDU(apdu, t);
r... | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#readString
(tuwien.auto.calimero.GroupAddress)
public String readString(GroupAddress dst) throws KNXTimeoutException,
KNXRemoteException, KNXLinkClosedException, KNXFormatException
{
final byte[] apdu = readFromGroup(dst, priority, 0, 14);
... | 132 | 117 | 343 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5ad88cc9c832a01e543b4ece660773208d0e0a60c895fad35633f655f032e86b | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
d37a78ecaf2c9c8304d8b5bf | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.write | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L378-L384 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.GroupAddress, java.lang.String) | public void write(GroupAddress dst, String value) throws KNXTimeoutException,
KNXFormatException, KNXLinkClosedException
{
final DPTXlatorString t = new DPTXlatorString(DPTXlatorString.DPT_STRING_8859_1);
t.setValue(value);
write(dst, priority, t);
} | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.GroupAddress, java.lang.String)
public void write(GroupAddress dst, String value) throws KNXTimeoutException,
KNXFormatException, KNXLinkClosedException
{
final DPTXlatorString t = new DPTXlatorString(DPTXlatorSt... | 109 | 130 | 266 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 7b17e65b5b977862b1a2dbb967c00ce1ecfe0ad2cad4cc0cc8de4ff202d51d37 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
00fa69d5b2d6cb02ebe9714e | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.read | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L390-L399 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#read
(tuwien.auto.calimero.datapoint.Datapoint) | public String read(Datapoint dp) throws KNXException
{
if (dp.getDPT() == null)
throw new KNXIllegalArgumentException("specify DPT for datapoint");
final byte[] apdu = readFromGroup(dp.getMainAddress(), dp.getPriority(), 0, 14);
final DPTXlator t =
TranslatorTypes.createTranslator(dp.getMainNumber(),... | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#read
(tuwien.auto.calimero.datapoint.Datapoint)
public String read(Datapoint dp) throws KNXException
{
if (dp.getDPT() == null)
throw new KNXIllegalArgumentException("specify DPT for datapoint");
final byte[] apdu = readFromGroup(dp.get... | 143 | 118 | 392 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c36f981f5faacd0b1f9cdcb42e672372a12d852cbcd7e4e201bf6dfce8df2caa | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
ab18fd248c095519e705f0f8 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.write | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L405-L411 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.datapoint.Datapoint, java.lang.String) | public void write(Datapoint dp, String value) throws KNXException
{
final DPTXlator t =
TranslatorTypes.createTranslator(dp.getMainNumber(), dp.getDPT());
t.setValue(value);
write(dp.getMainAddress(), dp.getPriority(), t);
} | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.datapoint.Datapoint, java.lang.String)
public void write(Datapoint dp, String value) throws KNXException
{
final DPTXlator t =
TranslatorTypes.createTranslator(dp.getMainNumber(), dp.getDPT());
t.setValue(val... | 102 | 137 | 241 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5a1ccc43f86b63f29b1919cc7d00a465c62ec7030eeebca9597b16e271f54809 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
810d2ee515abb36d2f4d4fdf | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.detach | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L416-L431 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#detach() | public KNXNetworkLink detach()
{
// if we synchronize on method we would take into account
// a worst case blocking of response timeout seconds
synchronized (lnkListener) {
// wait of response time seconds
if (detached)
return null;
detached = true;
}
lnk.removeLinkListener(lnkListener... | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#detach()
public KNXNetworkLink detach()
{
// if we synchronize on method we would take into account
// a worst case blocking of response timeout seconds
synchronized (lnkListener) {
// wait of response time seconds
if (detached)
... | 141 | 79 | 473 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 7f4ff81db90a84052bd7cfd0c92a733c8b7c6a30584e3a4a5432c990f5a0bbbd | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
b98aeec720ac0a41b191f5a5 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.createGroupAPDU | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L522-L536 | train | java | Creates a group service application layer protocol data unit containing all
items of a DPT translator.
<p>
The transport layer bits in the first byte (TL / AL control field) are set 0. The
maximum length used for the ASDU is not checked.<br>
For DPTs occupying <= 6 bits in length the optimized (compact) group write ... | private static byte[] createGroupAPDU(int service, DPTXlator t)
{
// check for group read
if (service == 0x00)
return new byte[2];
// only group response and group write are allowed
if (service != 0x40 && service != 0x80)
throw new KNXIllegalArgumentException("not an APDU group service");
// de... | Creates a group service application layer protocol data unit containing all
items of a DPT translator.
<p>
The transport layer bits in the first byte (TL / AL control field) are set 0. The
maximum length used for the ASDU is not checked.<br>
For DPTs occupying <= 6 bits in length the optimized (compact) group write ... | 309 | 491 | 648 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 8e4b61b4b55f8bc555da104409d3766e85a1f8a8a131c094078e340f9a20d483 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
18b85244c2423c8bbe5a37be | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.extractGroupASDU | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L550-L555 | train | java | Extracts the service data unit of an application layer protocol data unit into a
DPT translator.
<p>
The whole service data unit is taken as data for translation. If the length of the
supplied <code>apdu</code> is 2, a compact group APDU format layout is assumed.<br>
On return of this method, the supplied translator co... | private static void extractGroupASDU(byte[] apdu, DPTXlator t)
{
if (apdu.length < 2)
throw new KNXIllegalArgumentException("minimum APDU length is 2 bytes");
t.setData(apdu, apdu.length == 2 ? 1 : 2);
} | Extracts the service data unit of an application layer protocol data unit into a
DPT translator.
<p>
The whole service data unit is taken as data for translation. If the length of the
supplied <code>apdu</code> is 2, a compact group APDU format layout is assumed.<br>
On return of this method, the supplied translator co... | 185 | 476 | 217 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 065c2b2188ff36186c8ddc55d617365d2b314b823d2143ae29fbeba7faacf0e2 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
b899a68d01d49d85492fee5f | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorDate.java | DPTXlatorDate.getData | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorDate.java#L273-L418 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.dptxlator.DPTXlator#getData(byte[], int) | public byte[] getData(byte[] dst, int offset)
{
final int end = Math.min(data.length, dst.length - offset) / 3 * 3;
for (int i = 0; i < end; ++i)
dst[offset + i] = (byte) data[i];
return dst;
}
/* (non-Javadoc)
* @see tuwien.auto.calimero.dptxlator.DPTXlator#getSubTypes()
*/
public Map getS... | /* (non-Javadoc)
@see tuwien.auto.calimero.dptxlator.DPTXlator#getData(byte[], int)
public byte[] getData(byte[] dst, int offset)
{
final int end = Math.min(data.length, dst.length - offset) / 3 * 3;
for (int i = 0; i < end; ++i)
dst[offset + i] = (byte) data[i];
return dst;
}
/* (non-Javadoc)
... | 1,156 | 83 | 4,102 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 63d7890d8293da64a499f4eb00576b8afc450320e2546a12443bf64cfdca9b0f | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
4936b355f07829a74a92d3c0 | ow2-chameleon/fuchsia | examples/upnp-components/src/main/java/org/ow2/chameleon/fuchsia/upnp/clock/SetTimeAction.java | SetTimeAction.getStateVariable | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/examples/upnp-components/src/main/java/org/ow2/chameleon/fuchsia/upnp/clock/SetTimeAction.java#L78-L82 | train | java | /* (non-Javadoc)
@see org.osgi.service.upnp.UPnPAction#getStateVariable(java.lang.String) | public UPnPStateVariable getStateVariable(String argumentName) {
if (argumentName.equals("NewTime")) return time;
else if (argumentName.equals("Result")) return result;
else return null;
} | /* (non-Javadoc)
@see org.osgi.service.upnp.UPnPAction#getStateVariable(java.lang.String)
public UPnPStateVariable getStateVariable(String argumentName) {
if (argumentName.equals("NewTime")) return time;
else if (argumentName.equals("Result")) return result;
else return null;
} | 67 | 89 | 195 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 4e545bd26a1abed5d2c8effd69edeafb892a2df2c6cd89b231edf0530b4144ae | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
534809620c997530daa6a2d2 | ow2-chameleon/fuchsia | examples/upnp-components/src/main/java/org/ow2/chameleon/fuchsia/upnp/clock/SetTimeAction.java | SetTimeAction.invoke | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/examples/upnp-components/src/main/java/org/ow2/chameleon/fuchsia/upnp/clock/SetTimeAction.java#L88-L96 | train | java | /* (non-Javadoc)
@see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary) | public Dictionary invoke(Dictionary args) throws Exception {
Long newValue = (Long) args.get(NEW_TIME_VALUE);
Long oldValue = (Long) ((TimeStateVariable) time).getCurrentValue();
((TimeStateVariable) time).setCurrentTime(newValue.longValue());
ClockDevice.notifier.propertyChange(new PropertyChangeEv... | /* (non-Javadoc)
@see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
public Dictionary invoke(Dictionary args) throws Exception {
Long newValue = (Long) args.get(NEW_TIME_VALUE);
Long oldValue = (Long) ((TimeStateVariable) time).getCurrentValue();
((TimeStateVariable) time).setCurrentTime(n... | 128 | 84 | 487 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e894353268d48b7680c854511fb8a9c357e2cffc699772df726cedc5de4cf8c2 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
211ca5f485acafd9f760a98a | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/ServiceRequest.java | ServiceRequest.toByteArray | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/ServiceRequest.java#L210-L219 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.knxnetip.servicetype.ServiceType#toByteArray
(java.io.ByteArrayOutputStream) | byte[] toByteArray(ByteArrayOutputStream os)
{
os.write(CONN_HEADER_SIZE);
os.write(channelid);
os.write(seq);
os.write(0);
final byte[] buf = cemi.toByteArray();
os.write(buf, 0, buf.length);
return os.toByteArray();
} | /* (non-Javadoc)
@see tuwien.auto.calimero.knxnetip.servicetype.ServiceType#toByteArray
(java.io.ByteArrayOutputStream)
byte[] toByteArray(ByteArrayOutputStream os)
{
os.write(CONN_HEADER_SIZE);
os.write(channelid);
os.write(seq);
os.write(0);
final byte[] buf = cemi.toByteArray();
os.write(buf, 0,... | 96 | 119 | 244 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c9c3ea7c36e66420d2fb32c2d9571c22bcc52c68b85376cdc2f4a3e3938d1a1b | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
ec48113e9f16895b06bf0e6a | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/cemi/CEMIFactory.java | CEMIFactory.createFromEMI | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/cemi/CEMIFactory.java#L200-L223 | train | java | Creates a new cEMI message out of the supplied EMI frame.
<p>
@param frame EMI frame
@return the new cEMI message
@throws KNXFormatException if no (valid) EMI structure was found or unsupported EMI
message code | public static CEMI createFromEMI(byte[] frame) throws KNXFormatException
{
// check for minimum frame length (i.e. busmonitor)
if (frame.length < 4)
throw new KNXFormatException("EMI frame too short");
final int mc = frame[0] & 0xff;
if (mc == CEMIBusMon.MC_BUSMON_IND) {
return new CEMIBusMon(fram... | Creates a new cEMI message out of the supplied EMI frame.
<p>
@param frame EMI frame
@return the new cEMI message
@throws KNXFormatException if no (valid) EMI structure was found or unsupported EMI
message code
public static CEMI createFromEMI(byte[] frame) throws KNXFormatException
{
// check for minimum frame ... | 462 | 211 | 1,115 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 91d65a8cdb33485537811cbe70a62ab070443dfc20a26e9ff7bca84645f2ff56 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
befabb43f7c59c4898e7a843 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/cemi/CEMIFactory.java | CEMIFactory.create | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/cemi/CEMIFactory.java#L244-L269 | train | java | leave msgcode/src/dst/data null/0 to use from original | private static CEMI create(int msgCode, IndividualAddress src, KNXAddress dst,
byte[] data, CEMILData original, boolean ext)
{
final int mc = msgCode != 0 ? msgCode : original.getMessageCode();
final IndividualAddress s = src != null ? src : original.getSource();
final KNXAddress d = dst != null ? dst : o... | leave msgcode/src/dst/data null/0 to use from original
private static CEMI create(int msgCode, IndividualAddress src, KNXAddress dst,
byte[] data, CEMILData original, boolean ext)
{
final int mc = msgCode != 0 ? msgCode : original.getMessageCode();
final IndividualAddress s = src != null ? src : original.ge... | 344 | 54 | 1,231 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 6377c740bfcae810071aa0c0355c7cb6a0ec21863a001a0f2e9d508fc27659ec | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
20e9fcf1f4a75e2c046e801d | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.startup | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L142-L157 | train | java | Constructors | @Validate
public void startup(){
try {
logger.info("Starting Z-Wave controller");
connect(serialPortName);
this.watchdog = new Timer(true);
this.watchdog.schedule(
new WatchDogTimerTask(serialPortName),
WATCHDOG_TIMER_PERIOD, WATCHDOG_TIMER_PERIOD);
} catch (SerialInterfaceException e) {
... | Constructors
@Validate
public void startup(){
try {
logger.info("Starting Z-Wave controller");
connect(serialPortName);
this.watchdog = new Timer(true);
this.watchdog.schedule(
new WatchDogTimerTask(serialPortName),
WATCHDOG_TIMER_PERIOD, WATCHDOG_TIMER_PERIOD);
} catch (SerialInterfaceExce... | 97 | 12 | 401 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 597610dc58b5d5bbe612fc0c56d22b1421bc482b704c1299b5eb7e1d543006c4 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
cffbcea3fe481b8ce96ae01b | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleIncomingMessage | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L182-L197 | train | java | Handles incoming Serial Messages. Serial messages can either be messages
that are a response to our own requests, or the stick asking us information.
@param incomingMessage the incoming message to process. | private void handleIncomingMessage(SerialMessage incomingMessage) {
logger.debug("Incoming message to process");
logger.debug(incomingMessage.toString());
switch (incomingMessage.getMessageType()) {
case Request:
handleIncomingRequestMessage(incomingMessage);
break;
case Response:
handleIn... | Handles incoming Serial Messages. Serial messages can either be messages
that are a response to our own requests, or the stick asking us information.
@param incomingMessage the incoming message to process.
private void handleIncomingMessage(SerialMessage incomingMessage) {
logger.debug("Incoming message to proces... | 137 | 205 | 483 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 095f1e7f9eac2022a16db83ae8bc4aa9dbaeff445eb9c489a2ae3c2d32b9a39c | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
619954abe690faf167e79012 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleIncomingRequestMessage | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L204-L222 | train | java | Handles an incoming request message.
An incoming request message is a message initiated by a node or the controller.
@param incomingMessage the incoming message to process. | private void handleIncomingRequestMessage(SerialMessage incomingMessage) {
logger.debug("Message type = REQUEST");
switch (incomingMessage.getMessageClass()) {
case ApplicationCommandHandler:
handleApplicationCommandRequest(incomingMessage);
break;
case SendData:
handleSendDataRequest(incomingMess... | Handles an incoming request message.
An incoming request message is a message initiated by a node or the controller.
@param incomingMessage the incoming message to process.
private void handleIncomingRequestMessage(SerialMessage incomingMessage) {
logger.debug("Message type = REQUEST");
switch (incomingMessage.get... | 167 | 172 | 650 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 63e83d4fd02344058d18b475616e1843a96059404ff95a2c4ae74f13e80144b9 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
932f0b70435597605250d138 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleApplicationCommandRequest | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L228-L266 | train | java | Handles incoming Application Command Request.
@param incomingMessage the request message to process. | private void handleApplicationCommandRequest(SerialMessage incomingMessage) {
logger.trace("Handle Message Application Command Request");
int nodeId = incomingMessage.getMessagePayloadByte(1);
logger.debug("Application Command Request from Node " + nodeId);
ZWaveNode node = getNode(nodeId);
if (node == nul... | Handles incoming Application Command Request.
@param incomingMessage the request message to process.
private void handleApplicationCommandRequest(SerialMessage incomingMessage) {
logger.trace("Handle Message Application Command Request");
int nodeId = incomingMessage.getMessagePayloadByte(1);
logger.debug("Appli... | 429 | 100 | 1,876 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | af12e403bfaaca0ffb1e6c5446478b4fc4a900e46d5c0f77e133fea07f3237d2 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
d7747f92b463179008e64fd6 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleSendDataRequest | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L273-L320 | train | java | Handles incoming Send Data Request. Send Data request are used
to acknowledge or cancel failed messages.
@param incomingMessage the request message to process. | private void handleSendDataRequest(SerialMessage incomingMessage) {
logger.trace("Handle Message Send Data Request");
int callbackId = incomingMessage.getMessagePayloadByte(0);
TransmissionState status = TransmissionState.getTransmissionState(incomingMessage.getMessagePayloadByte(1));
SerialMessage originalM... | Handles incoming Send Data Request. Send Data request are used
to acknowledge or cancel failed messages.
@param incomingMessage the request message to process.
private void handleSendDataRequest(SerialMessage incomingMessage) {
logger.trace("Handle Message Send Data Request");
int callbackId = incomingMessage.g... | 453 | 159 | 1,966 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e5cf9034517d7b66f7c11da619bc342e48623b08ffc0bc5104a19ca4b68a6264 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
593b9cfebb23124250a00e34 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleFailedSendDataRequest | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L327-L348 | train | java | Handles a failed SendData request. This can either be because of the stick actively reporting it
or because of a time-out of the transaction in the send thread.
@param originalMessage the original message that was sent | private void handleFailedSendDataRequest(SerialMessage originalMessage) {
ZWaveNode node = this.getNode(originalMessage.getMessageNode());
if (node.getNodeStage() == NodeStage.NODEBUILDINFO_DEAD)
return;
if (!node.isListening() && originalMessage.getPriority() != SerialMessage.SerialMessagePriority.Low) ... | Handles a failed SendData request. This can either be because of the stick actively reporting it
or because of a time-out of the transaction in the send thread.
@param originalMessage the original message that was sent
private void handleFailedSendDataRequest(SerialMessage originalMessage) {
ZWaveNode node = this.ge... | 269 | 218 | 965 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e5fd52bdf552aed4857a32e8422fa03e9484acf726c27e8955c3dbee7af32583 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
208007b53a9705a3d3d1794b | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleApplicationUpdateRequest | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L354-L412 | train | java | Handles incoming Application Update Request.
@param incomingMessage the request message to process. | private void handleApplicationUpdateRequest(SerialMessage incomingMessage) {
logger.trace("Handle Message Application Update Request");
int nodeId = incomingMessage.getMessagePayloadByte(1);
logger.trace("Application Update Request from Node " + nodeId);
UpdateState updateState = UpdateState.getUpdateState(i... | Handles incoming Application Update Request.
@param incomingMessage the request message to process.
private void handleApplicationUpdateRequest(SerialMessage incomingMessage) {
logger.trace("Handle Message Application Update Request");
int nodeId = incomingMessage.getMessagePayloadByte(1);
logger.trace("Appli... | 567 | 99 | 2,557 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 57cdfcf44c369593e8906364c431fa75e92f3c0e48ebaca3f3fb681abb3ce3d6 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
dbd939fc4193784b41f19d05 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleIncomingResponseMessage | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L419-L474 | train | java | Handles an incoming response message.
An incoming response message is a response, based one of our own requests.
@param incomingMessage the response message to process. | private void handleIncomingResponseMessage(SerialMessage incomingMessage) {
logger.debug("Message type = RESPONSE");
switch (incomingMessage.getMessageClass()) {
case GetVersion:
handleGetVersionResponse(incomingMessage);
if (incomingMessage.getMessageClass() == this.lastSentMessage.getExpectedReply() &&... | Handles an incoming response message.
An incoming response message is a response, based one of our own requests.
@param incomingMessage the response message to process.
private void handleIncomingResponseMessage(SerialMessage incomingMessage) {
logger.debug("Message type = RESPONSE");
switch (incomingMessage.getMe... | 678 | 168 | 3,195 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9259f8c7d86727eb87188918341241027674898a189a0c5bfd61095da8708463 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
d80457453125f7e1397dfc56 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleGetVersionResponse | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L480-L484 | train | java | Handles the response of the getVersion request.
@param incomingMessage the response message to process. | private void handleGetVersionResponse(SerialMessage incomingMessage) {
this.ZWaveLibraryType = incomingMessage.getMessagePayloadByte(12);
this.zWaveVersion = new String(ArrayUtils.subarray(incomingMessage.getMessagePayload(), 0, 11));
logger.debug(String.format("Got MessageGetVersion response. Version = %s, Libra... | Handles the response of the getVersion request.
@param incomingMessage the response message to process.
private void handleGetVersionResponse(SerialMessage incomingMessage) {
this.ZWaveLibraryType = incomingMessage.getMessagePayloadByte(12);
this.zWaveVersion = new String(ArrayUtils.subarray(incomingMessage.getMes... | 107 | 103 | 375 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b3888b9e566137f07decb77ab6c7d9ffbb2ac6f013d2cd3c16d460d265525a8e | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
ddfcd8b6ec97faccbcc1e761 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleSerialApiGetInitDataResponse | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L490-L525 | train | java | Handles the response of the SerialApiGetInitData request.
@param incomingMlivessage the response message to process. | private void handleSerialApiGetInitDataResponse(
SerialMessage incomingMessage) {
logger.debug(String.format("Got MessageSerialApiGetInitData response."));
this.isConnected = true;
int nodeBytes = incomingMessage.getMessagePayloadByte(2);
if (nodeBytes != NODE_BYTES) {
logger.error("Invalid number of n... | Handles the response of the SerialApiGetInitData request.
@param incomingMlivessage the response message to process.
private void handleSerialApiGetInitDataResponse(
SerialMessage incomingMessage) {
logger.debug(String.format("Got MessageSerialApiGetInitData response."));
this.isConnected = true;
int nodeByte... | 342 | 116 | 1,245 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | af2a9eb0392694d402f08c4fbfbb9ea4ba980d2587e7334a75c8b8bdb688c71f | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
cc4ff7f5e5a8a826fa12848f | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleMemoryGetId | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L532-L539 | train | java | Handles the response of the MemoryGetId request.
The MemoryGetId function gets the home and node id from the controller memory.
@param incomingMessage the response message to process. | private void handleMemoryGetId(SerialMessage incomingMessage) {
this.homeId = ((incomingMessage.getMessagePayloadByte(0)) << 24) |
((incomingMessage.getMessagePayloadByte(1)) << 16) |
((incomingMessage.getMessagePayloadByte(2)) << 8) |
(incomingMessage.getMessagePayloadByte(3));
this.ownNodeId = inco... | Handles the response of the MemoryGetId request.
The MemoryGetId function gets the home and node id from the controller memory.
@param incomingMessage the response message to process.
private void handleMemoryGetId(SerialMessage incomingMessage) {
this.homeId = ((incomingMessage.getMessagePayloadByte(0)) << 24) |
... | 168 | 183 | 498 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 10fe5f5291fe494fc9a97bbe7f9a603c5c2427b4c864c421548b10a053c6838f | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
13e19f92324f0a8d865a8fea | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleIdentifyNodeResponse | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L545-L609 | train | java | Handles the response of the IdentifyNode request.
@param incomingMessage the response message to process. | private void handleIdentifyNodeResponse(SerialMessage incomingMessage) {
logger.trace("Handle Message Get Node ProtocolInfo Response");
int nodeId = lastSentMessage.getMessagePayloadByte(0);
logger.debug("ProtocolInfo for Node = " + nodeId);
boolean listening = (incomingMessage.getMessagePayloadByte(0) & ... | Handles the response of the IdentifyNode request.
@param incomingMessage the response message to process.
private void handleIdentifyNodeResponse(SerialMessage incomingMessage) {
logger.trace("Handle Message Get Node ProtocolInfo Response");
int nodeId = lastSentMessage.getMessagePayloadByte(0);
logger.debug(... | 838 | 105 | 3,371 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 00db8d7f79c32c3874672dd4a1df1741a8542bbda88b959c38517f5281400696 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
87b41772e4a777afbbdf4ca8 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleSerialAPIGetCapabilitiesResponse | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L615-L630 | train | java | Handles the response of the SerialAPIGetCapabilities request.
@param incomingMessage the response message to process. | private void handleSerialAPIGetCapabilitiesResponse(SerialMessage incomingMessage) {
logger.trace("Handle Message Serial API Get Capabilities");
this.serialAPIVersion = String.format("%d.%d", incomingMessage.getMessagePayloadByte(0), incomingMessage.getMessagePayloadByte(1));
this.manufactureId = ((incomingMessa... | Handles the response of the SerialAPIGetCapabilities request.
@param incomingMessage the response message to process.
private void handleSerialAPIGetCapabilitiesResponse(SerialMessage incomingMessage) {
logger.trace("Handle Message Serial API Get Capabilities");
this.serialAPIVersion = String.format("%d.%d", inco... | 296 | 117 | 1,221 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e2b39947924dd1afa67d138c09923266d66d81f4bc990f5bfc69ed59b55b1bfb | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
6aba4820eace40fa75e64bce | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleSendDataResponse | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L636-L642 | train | java | Handles the response of the SendData request.
@param incomingMessage the response message to process. | private void handleSendDataResponse(SerialMessage incomingMessage) {
logger.trace("Handle Message Send Data Response");
if(incomingMessage.getMessageBuffer()[2] != 0x00)
logger.debug("Sent Data successfully placed on stack.");
else
logger.error("Sent Data was not placed on stack due to error.");
} | Handles the response of the SendData request.
@param incomingMessage the response message to process.
private void handleSendDataResponse(SerialMessage incomingMessage) {
logger.trace("Handle Message Send Data Response");
if(incomingMessage.getMessageBuffer()[2] != 0x00)
logger.debug("Sent Data successfully pla... | 88 | 101 | 311 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e925c4a6a8142f3e2f332cde5dcfbdf0c5b346d22d3643115fa14eb58d27d2fb | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
3116a4b571a2e63f694fe4a0 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleRequestNodeInfoResponse | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L648-L654 | train | java | Handles the response of the Request node request.
@param incomingMessage the response message to process. | private void handleRequestNodeInfoResponse(SerialMessage incomingMessage) {
logger.trace("Handle RequestNodeInfo Response");
if(incomingMessage.getMessageBuffer()[2] != 0x00)
logger.debug("Request node info successfully placed on stack.");
else
logger.error("Request node info not placed on stack due to erro... | Handles the response of the Request node request.
@param incomingMessage the response message to process.
private void handleRequestNodeInfoResponse(SerialMessage incomingMessage) {
logger.trace("Handle RequestNodeInfo Response");
if(incomingMessage.getMessageBuffer()[2] != 0x00)
logger.debug("Request node info... | 90 | 105 | 328 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a7fd299fcb425c410a97a2856e5e1c833db9378755918d4a452d753f75be4f6c | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
6b1d362afed7fc4a8fd946e1 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.connect | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L663-L689 | train | java | Connects to the comm port and starts send and receive threads.
@param serialPortName the port name to open
@throws SerialInterfaceException when a connection error occurs. | public void connect(final String serialPortName)
throws SerialInterfaceException {
logger.info("Connecting to serial port {}", serialPortName);
try {
CommPortIdentifier portIdentifier = CommPortIdentifier.getPortIdentifier(serialPortName);
CommPort commPort = portIdentifier.open("org.openhab.binding.zwave"... | Connects to the comm port and starts send and receive threads.
@param serialPortName the port name to open
@throws SerialInterfaceException when a connection error occurs.
public void connect(final String serialPortName)
throws SerialInterfaceException {
logger.info("Connecting to serial port {}", serialPortName)... | 313 | 171 | 1,251 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 524176e9085b6cb8b8c32d499168ccf31a7c0fc474bc063a78413b8c13ffc4b5 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
5a8164ac6f1bb74d05a7c6df | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.close | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L694-L714 | train | java | Closes the connection to the Z-Wave controller. | public void close() {
if (watchdog != null) {
watchdog.cancel();
watchdog = null;
}
disconnect();
// clear nodes collection and send queue
for (Object listener : this.zwaveEventListeners.toArray()) {
if (!(listener instanceof ZWaveNode))
continue;
this.zwaveEventListeners.remove(list... | Closes the connection to the Z-Wave controller.
public void close() {
if (watchdog != null) {
watchdog.cancel();
watchdog = null;
}
disconnect();
// clear nodes collection and send queue
for (Object listener : this.zwaveEventListeners.toArray()) {
if (!(listener instanceof ZWaveNode))
cont... | 124 | 47 | 436 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | d2096fb4e540514108dc7209131f78e00d7c0a1f7c4344af0a9ad261154dfe2b | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
063aeabd18eb718af97af3ed | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.disconnect | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L720-L747 | train | java | Disconnects from the serial interface and stops
send and receive threads. | public void disconnect() {
if (sendThread != null) {
sendThread.interrupt();
try {
sendThread.join();
} catch (InterruptedException e) {
}
sendThread = null;
}
if (receiveThread != null) {
receiveThread.interrupt();
try {
receiveThread.join();
} catch (InterruptedException e) {
... | Disconnects from the serial interface and stops
send and receive threads.
public void disconnect() {
if (sendThread != null) {
sendThread.interrupt();
try {
sendThread.join();
} catch (InterruptedException e) {
}
sendThread = null;
}
if (receiveThread != null) {
receiveThread.interrupt();
... | 196 | 73 | 760 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | da250f92659cb5396208529251aadee6a9f9252bcc91ab43f62537a92c54c24d | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
0d3e7a15ee5ef2f88ba29099 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.enqueue | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L753-L756 | train | java | Enqueues a message for sending on the send thread.
@param serialMessage the serial message to enqueue. | public void enqueue(SerialMessage serialMessage) {
this.sendQueue.add(serialMessage);
logger.debug("Enqueueing message. Queue length = {}", this.sendQueue.size());
} | Enqueues a message for sending on the send thread.
@param serialMessage the serial message to enqueue.
public void enqueue(SerialMessage serialMessage) {
this.sendQueue.add(serialMessage);
logger.debug("Enqueueing message. Queue length = {}", this.sendQueue.size());
} | 58 | 102 | 170 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 935c623953ee667d9de2c0344dd327a99dc40ed097114106f0dbe84d7b9e1261 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
1123ec017f537ee3f831cab6 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.notifyEventListeners | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L762-L768 | train | java | Notify our own event listeners of a Z-Wave event.
@param event the event to send. | public void notifyEventListeners(ZWaveEvent event) {
logger.debug("Notifying event listeners");
for (ZWaveEventListener listener : this.zwaveEventListeners) {
logger.trace("Notifying {}", listener.toString());
listener.ZWaveIncomingEvent(event);
}
} | Notify our own event listeners of a Z-Wave event.
@param event the event to send.
public void notifyEventListeners(ZWaveEvent event) {
logger.debug("Notifying event listeners");
for (ZWaveEventListener listener : this.zwaveEventListeners) {
logger.trace("Notifying {}", listener.toString());
listener.ZWaveInc... | 78 | 81 | 262 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 296628d646daf19797bc0ecc44e3e0c2857da41d61308bcac3cfdd4694f0fd6f | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
4e7f8fadd72455b4fc7fb0ae | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.initialize | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L773-L777 | train | java | Initializes communication with the Z-Wave controller stick. | public void initialize() {
this.enqueue(new SerialMessage(SerialMessage.SerialMessageClass.GetVersion, SerialMessage.SerialMessageType.Request, SerialMessage.SerialMessageClass.GetVersion, SerialMessage.SerialMessagePriority.High));
this.enqueue(new SerialMessage(SerialMessage.SerialMessageClass.MemoryGetId, Serial... | Initializes communication with the Z-Wave controller stick.
public void initialize() {
this.enqueue(new SerialMessage(SerialMessage.SerialMessageClass.GetVersion, SerialMessage.SerialMessageType.Request, SerialMessage.SerialMessageClass.GetVersion, SerialMessage.SerialMessagePriority.High));
this.enqueue(new Seria... | 132 | 59 | 683 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5464148598a663242c61c08dbbaa39f1cf16e9df02f5720cad7f30008fb3b7a7 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
0bce30dc31e0ef406422f36f | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.identifyNode | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L784-L789 | train | java | Send Identify Node message to the controller.
@param nodeId the nodeId of the node to identify
@throws SerialInterfaceException when timing out or getting an invalid response. | public void identifyNode(int nodeId) throws SerialInterfaceException {
SerialMessage newMessage = new SerialMessage(nodeId, SerialMessage.SerialMessageClass.IdentifyNode, SerialMessage.SerialMessageType.Request, SerialMessage.SerialMessageClass.IdentifyNode, SerialMessage.SerialMessagePriority.High);
byte[] newP... | Send Identify Node message to the controller.
@param nodeId the nodeId of the node to identify
@throws SerialInterfaceException when timing out or getting an invalid response.
public void identifyNode(int nodeId) throws SerialInterfaceException {
SerialMessage newMessage = new SerialMessage(nodeId, SerialMessage.Ser... | 117 | 175 | 428 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a2f9915e2d40c410a0ffb2da3f07e8d740b71b7dc9aff089ab58a4cfce3a0d8f | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
a5e6251154b1fb1fb1603231 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.requestNodeInfo | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L796-L801 | train | java | Send Request Node info message to the controller.
@param nodeId the nodeId of the node to identify
@throws SerialInterfaceException when timing out or getting an invalid response. | public void requestNodeInfo(int nodeId) {
SerialMessage newMessage = new SerialMessage(nodeId, SerialMessage.SerialMessageClass.RequestNodeInfo, SerialMessage.SerialMessageType.Request, SerialMessage.SerialMessageClass.ApplicationUpdate, SerialMessage.SerialMessagePriority.High);
byte[] newPayload = { (byte) nod... | Send Request Node info message to the controller.
@param nodeId the nodeId of the node to identify
@throws SerialInterfaceException when timing out or getting an invalid response.
public void requestNodeInfo(int nodeId) {
SerialMessage newMessage = new SerialMessage(nodeId, SerialMessage.SerialMessageClass.RequestNo... | 112 | 179 | 407 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3b6bbe1f9c4377533501b4f805ed79fa0fd6b6d246119b5d6c23e5bcc71e19c1 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
5a3feb9b3564eaadec39593b | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.checkForDeadOrSleepingNodes | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L807-L847 | train | java | Checks for dead or sleeping nodes during Node initialization.
JwS: merged checkInitComplete and checkForDeadOrSleepingNodes to prevent possibly looping nodes multiple times. | public void checkForDeadOrSleepingNodes(){
int completeCount = 0;
if (zwaveNodes.isEmpty())
return;
// There are still nodes waiting to get a ping.
// So skip the dead node checking.
for (SerialMessage serialMessage : sendQueue) {
if (serialMessage.getPriority() == SerialMessage.SerialMessagePrior... | Checks for dead or sleeping nodes during Node initialization.
JwS: merged checkInitComplete and checkForDeadOrSleepingNodes to prevent possibly looping nodes multiple times.
public void checkForDeadOrSleepingNodes(){
int completeCount = 0;
if (zwaveNodes.isEmpty())
return;
// There are still nodes waiti... | 405 | 173 | 1,552 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0ad2d3d1e1f8e933e02c0e15548ee2fc56719aa5c56039f1ca3b7517b5cdffe3 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
fc8c41a07cfdead85728a55d | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.requestValue | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L854-L874 | train | java | Request value from the node / endpoint;
@param nodeId the node id to request the value for.
@param endpoint the endpoint to request the value for. | public void requestValue(int nodeId, int endpoint) {
ZWaveNode node = this.getNode(nodeId);
ZWaveGetCommands zwaveCommandClass = null;
SerialMessage serialMessage = null;
for (ZWaveCommandClass.CommandClass commandClass : new ZWaveCommandClass.CommandClass[] { ZWaveCommandClass.CommandClass.SENSOR_BINARY, Z... | Request value from the node / endpoint;
@param nodeId the node id to request the value for.
@param endpoint the endpoint to request the value for.
public void requestValue(int nodeId, int endpoint) {
ZWaveNode node = this.getNode(nodeId);
ZWaveGetCommands zwaveCommandClass = null;
SerialMessage serialMessage = n... | 286 | 146 | 1,050 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e8a5a79ac20936e9fb03902920590b8d3489054de75e2cfa5ffdc4afba3de153 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
332c86a45f4845629b3faf67 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.requestBatteryLevel | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L881-L896 | train | java | Request the battery level from the node / endpoint;
@param nodeId the node id to request the battery level for.
@param endpoint the endpoint to request the battery level for. | public void requestBatteryLevel(int nodeId, int endpoint) {
ZWaveNode node = this.getNode(nodeId);
SerialMessage serialMessage = null;
ZWaveBatteryCommandClass zwaveBatteryCommandClass = (ZWaveBatteryCommandClass)node.resolveCommandClass(ZWaveCommandClass.CommandClass.BATTERY, endpoint);
if (zwaveBatteryC... | Request the battery level from the node / endpoint;
@param nodeId the node id to request the battery level for.
@param endpoint the endpoint to request the battery level for.
public void requestBatteryLevel(int nodeId, int endpoint) {
ZWaveNode node = this.getNode(nodeId);
SerialMessage serialMessage = null;
... | 187 | 174 | 666 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 90d8c42f2337af5af8beaa2f1e685bf5ea5284670bf895b5f9fc96755df3bb6d | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.