jadex.bridge.sensor.mac.MacAddressProperty Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-platform-bridge Show documentation
Show all versions of jadex-platform-bridge Show documentation
Jadex bridge is a base package for kernels and platforms, i.e., it is used by both and provides commonly used interfaces and classes for active components and their management.
package jadex.bridge.sensor.mac;
import jadex.bridge.IInternalAccess;
import jadex.bridge.nonfunctional.NFPropertyMetaInfo;
import jadex.bridge.nonfunctional.NFRootProperty;
import jadex.commons.SUtil;
/**
* 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 IInternalAccess comp)
{
super(comp, new NFPropertyMetaInfo(NAME, String.class, null, false, -1, false, Target.Root));
}
/**
* Measure the value.
*/
public String measureValue()
{
return SUtil.getMacAddress();
}
}