Package org.ulti.dev.powermeter

Source Code of org.ulti.dev.powermeter.CreateNewVariable

package org.ulti.dev.powermeter;

import org.ulti.dev.powermeter.PowerMeterActions.VariableType;

public class CreateNewVariable {

  /**
   * Creates a new powermeter variable. This won't use the variable in the config file but the user id / hash should be set there first.
   *
   * @param args
   */
  public static void main(String[] args) {
    PowerMeterActions pma = new PowerMeterActions();
    String varId = "currentcost.envi.12g";
    String title = "title";
    String description = "description";
    String location = "Waterloo, ON";
    VariableType kind = PowerMeterActions.VariableType.DURATIONAL;

    pma.createNewVariable(varId, description, title, location, kind);

  }

}
TOP

Related Classes of org.ulti.dev.powermeter.CreateNewVariable

TOP
Copyright © 2018 www.massapi.com. 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.