|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectexperiment.property.Capability
public class Capability
Created by IntelliJ IDEA. User: andy Date: Mar 10, 2010 Utilizes objects that describe the wiseml capability tag. It can be used to add capabilities to the nodes (examples are temperature, humidity, etc) and links (for example LQI, packet error rate, cost, etc). The user needs to specify the name, datatype, unit and a value.
Constructor Summary | |
---|---|
Capability(java.lang.String name,
Setup.Datatype dtype,
Setup.Unit unit,
java.lang.String value)
Default Constructor. |
Method Summary | |
---|---|
Setup.Datatype |
getDatatype()
Returns the capability's Datatype |
java.lang.String |
getName()
Return the capability's name |
Setup.Unit |
getUnit()
Returns the capability's unit type |
java.lang.String |
getValue()
Returns the capability's value |
void |
update(java.lang.String value)
Update the capability |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Capability(java.lang.String name, Setup.Datatype dtype, Setup.Unit unit, java.lang.String value)
name
- the name of the capabilitydtype
- the capability's data typeunit
- the capability's unit typevalue
- capability's valueMethod Detail |
---|
public Setup.Datatype getDatatype()
public java.lang.String getName()
public Setup.Unit getUnit()
public java.lang.String getValue()
public void update(java.lang.String value)
value
- contains the new value
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |