BowlerKernel
java-bowler
src
main
java
com
neuronrobotics
sdk
commands
neuronrobotics
dyio
ProvisionCommand.java
Go to the documentation of this file.
1
/*******************************************************************************
2
* Copyright 2010 Neuron Robotics, LLC
3
* Licensed under the Apache License, Version 2.0 (the "License");
4
* you may not use this file except in compliance with the License.
5
* You may obtain a copy of the License at
6
*
7
* http://www.apache.org/licenses/LICENSE-2.0
8
*
9
* Unless required by applicable law or agreed to in writing, software
10
* distributed under the License is distributed on an "AS IS" BASIS,
11
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
* See the License for the specific language governing permissions and
13
* limitations under the License.
14
******************************************************************************/
15
package
com.neuronrobotics.sdk.commands.neuronrobotics.dyio;
16
17
import
com.neuronrobotics.sdk.common.BowlerAbstractCommand;
18
import
com.neuronrobotics.sdk.common.BowlerMethod;
19
import
com.neuronrobotics.sdk.common.MACAddress;
20
21
// TODO: Auto-generated Javadoc
25
public
class
ProvisionCommand
extends
BowlerAbstractCommand
{
26
32
public
ProvisionCommand
(
MACAddress
mac) {
33
setMethod
(
BowlerMethod
.
CRITICAL
);
34
setOpCode
(
"_mac"
);
35
getCallingDataStorage
().
add
(mac.
getBytes
());
36
}
37
38
}
com.neuronrobotics.sdk.commands.neuronrobotics.dyio.ProvisionCommand
Definition:
ProvisionCommand.java:25
com.neuronrobotics.sdk.commands.neuronrobotics.dyio.ProvisionCommand.ProvisionCommand
ProvisionCommand(MACAddress mac)
Definition:
ProvisionCommand.java:32
com.neuronrobotics.sdk.common.BowlerAbstractCommand
Definition:
BowlerAbstractCommand.java:42
com.neuronrobotics.sdk.common.BowlerAbstractCommand.setMethod
void setMethod(BowlerMethod method)
Definition:
BowlerAbstractCommand.java:93
com.neuronrobotics.sdk.common.BowlerAbstractCommand.getCallingDataStorage
ByteList getCallingDataStorage()
Definition:
BowlerAbstractCommand.java:244
com.neuronrobotics.sdk.common.BowlerAbstractCommand.setOpCode
void setOpCode(String opCode)
Definition:
BowlerAbstractCommand.java:71
com.neuronrobotics.sdk.common.ByteList.add
synchronized boolean add(byte data)
Definition:
ByteList.java:149
com.neuronrobotics.sdk.common.MACAddress
Definition:
MACAddress.java:22
com.neuronrobotics.sdk.common.MACAddress.getBytes
byte[] getBytes()
Definition:
MACAddress.java:132
com.neuronrobotics.sdk.common.BowlerMethod
Definition:
BowlerMethod.java:25
com.neuronrobotics.sdk.common.BowlerMethod.CRITICAL
CRITICAL
Definition:
BowlerMethod.java:37
Generated by
1.9.1