Package | Description |
---|---|
com.aldebaran.qi | |
com.aldebaran.qi.serialization |
Class and Description |
---|
QiSerializer
Class that provides methods to serialize and deserialize custom objects to and from supported
types.
|
Class and Description | ||
---|---|---|
MethodDescription
Describe a method.
It contains the method name, return type and parameters type. For choose the best method that corresponds to a search one, we compute a "distance" between methods: This "distance" is build for when match exactly, the distance is 0. If the two methods have different name or different number of parameters the distance is "infinite" .
The distance between primitive and their associated Object (For example int <-> java.lang.Integer, boolean <-> java.lang.Boolean, ...) is MethodDescription.DISTANCE_PRIMITIVE_OBJECT .
The distance between two numbers (double, float, ...) is MethodDescription.DISTANCE_NUMBERS .
The distance (for returned value only) between a type and a Future that embed this type is MethodDescription.DISTANCE_FUTURE .
The distance with a Tuple and QiStruct is MethodDescription.DISTANCE_TUPLE_STRUCT
For others case the distance becomes "infinite"
By example for libqi signature "call::s(i)":
Copyright © 2020. All rights reserved. |