public class NFPropertyMetaInfo extends java.lang.Object implements INFPropertyMetaInfo
Modifier and Type | Field and Description |
---|---|
protected boolean |
dynamic
Flag indicating if the property is dynamic.
|
protected java.lang.String |
name
Name of the property.
|
protected boolean |
realtime
Flag indicating if the update rate is real time.
|
protected INFProperty.Target |
target
The target.
|
protected java.lang.Class<?> |
type
Type of the property.
|
protected java.lang.Class<?> |
unit
Unit of the property value.
|
protected long |
updaterate
The update rate.
|
Constructor and Description |
---|
NFPropertyMetaInfo()
Creates an empty meta info.
|
NFPropertyMetaInfo(java.lang.String name,
java.lang.Class<?> type)
Creates a meta info.
|
NFPropertyMetaInfo(java.lang.String name,
java.lang.Class<?> type,
java.lang.Class<?> unit,
boolean dynamic)
Creates a meta info.
|
NFPropertyMetaInfo(java.lang.String name,
java.lang.Class<?> type,
java.lang.Class<?> unit,
boolean dynamic,
long updaterate,
boolean realtime,
INFProperty.Target target)
Creates a meta info.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets the name of the property.
|
INFProperty.Target |
getTarget()
Get the target.
|
java.lang.Class<?> |
getType()
Gets the type of the property.
|
java.lang.Class<?> |
getUnit()
Gets the unit of the property.
|
long |
getUpdateRate()
Gets the update rate of the property, if it exists, for dynamic properties.
|
boolean |
isDynamic()
Checks if the property is dynamic.
|
boolean |
isRealtime()
Checks if the property is real time.
|
void |
setDynamic(boolean dynamic)
Sets the dynamic flag of the property.
|
void |
setName(java.lang.String name)
Sets the name of the property.
|
void |
setRealtime(boolean realtime)
Sets the real time flag of the property.
|
void |
setTarget(INFProperty.Target target)
Set the target.
|
void |
setType(java.lang.Class<?> type)
Sets the type of the property.
|
void |
setUnit(java.lang.Class<?> unit)
Sets the unit of the property.
|
void |
setUpdateRate(long updaterate)
Sets the update rate of the property for dynamic properties.
|
protected java.lang.String name
protected java.lang.Class<?> type
protected java.lang.Class<?> unit
protected boolean dynamic
protected long updaterate
protected boolean realtime
protected INFProperty.Target target
public NFPropertyMetaInfo()
public NFPropertyMetaInfo(java.lang.String name, java.lang.Class<?> type)
name
- Name of the property.public NFPropertyMetaInfo(java.lang.String name, java.lang.Class<?> type, java.lang.Class<?> unit, boolean dynamic)
name
- Name of the property.public NFPropertyMetaInfo(java.lang.String name, java.lang.Class<?> type, java.lang.Class<?> unit, boolean dynamic, long updaterate, boolean realtime, INFProperty.Target target)
name
- Name of the property.type
- Type of the property.unit
- Unit of the property.dynamic
- Flag if the property is dynamic.updaterate
- Update rate of the property.target
- Target of the property.public java.lang.String getName()
getName
in interface INFPropertyMetaInfo
public java.lang.Class<?> getType()
getType
in interface INFPropertyMetaInfo
public java.lang.Class<?> getUnit()
getUnit
in interface INFPropertyMetaInfo
public boolean isDynamic()
isDynamic
in interface INFPropertyMetaInfo
public long getUpdateRate()
getUpdateRate
in interface INFPropertyMetaInfo
public boolean isRealtime()
isRealtime
in interface INFPropertyMetaInfo
public void setName(java.lang.String name)
name
- The name of the property.public void setType(java.lang.Class<?> type)
type
- The type.public void setUnit(java.lang.Class<?> unit)
unit
- The unit of the property.public void setDynamic(boolean dynamic)
dynamic
- The dynamic flag value.public void setUpdateRate(long updaterate)
updaterate
- The update rate.public void setRealtime(boolean realtime)
realtime
- The real time flag value.public INFProperty.Target getTarget()
getTarget
in interface INFPropertyMetaInfo
public void setTarget(INFProperty.Target target)
target
- The target to set.