All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jadex.nfproperty.sensor.mac.MacAddressProperty Maven / Gradle / Ivy

package jadex.nfproperty.sensor.mac;

import jadex.common.SUtil;
import jadex.core.IComponent;
import jadex.nfproperty.impl.NFPropertyMetaInfo;
import jadex.nfproperty.impl.NFRootProperty;

/**
 *  The (first) mac address.
 */
public class MacAddressProperty extends NFRootProperty
{
	/** The name of the property. */
	public static final String NAME = "mac address";
	
	/**
	 *  Create a new property.
	 */
	public MacAddressProperty(final IComponent comp)
	{
		super(comp, new NFPropertyMetaInfo(NAME, String.class, null, false, -1, false, Target.Root));
	}
	
	/**
	 *  Measure the value.
	 */
	public String measureValue()
	{
		return SUtil.getMacAddress();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy