Package fiftyone.mobile.detection.entities

Examples of fiftyone.mobile.detection.entities.Profile


     * @param profileId The ID of the profile to replace the existing component
     * @throws IOException
     */
    public void updateProfile(int profileId) throws IOException {
        // Find the new profile from the data set.
        Profile newProfile = dataSet.findProfile(profileId);
        if (newProfile != null) {
            // Loop through the profiles found so far and replace the
            // profile for the same component with the new one.
            for (int i = 0; i < getProfiles().length; i++) {
                // Compare by component Id incase the stream data source is
                // used and we have different instances of the same component
                // being used.
                if (profiles[i].getComponent().getComponentId()
                        == newProfile.getComponent().getComponentId()) {
                    profiles[i] = newProfile;
                    break;
                }
            }
        }
View Full Code Here


public class ProfileFactory extends BaseEntityFactory<Profile> {

    @Override
    public Profile create(Dataset dataSet, int index,
            BinaryReader reader) {
        return new Profile(dataSet, index, reader);
    }
View Full Code Here

TOP

Related Classes of fiftyone.mobile.detection.entities.Profile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.