Package jadex.bridge.nonfunctional
Class NFPropertyMetaInfo
- java.lang.Object
-
- jadex.bridge.nonfunctional.NFPropertyMetaInfo
-
- All Implemented Interfaces:
INFPropertyMetaInfo
public class NFPropertyMetaInfo extends java.lang.Object implements INFPropertyMetaInfo
Meta information about a non-functional property.
-
-
Field Summary
Fields Modifier and Type Field 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 ClassInfo
type
Type of the property.protected ClassInfo
unit
Unit of the property value.protected long
updaterate
The update rate.
-
Constructor Summary
Constructors Constructor Description NFPropertyMetaInfo()
Creates an empty meta info.NFPropertyMetaInfo(java.lang.String name, ClassInfo type)
Creates a meta info.NFPropertyMetaInfo(java.lang.String name, ClassInfo type, ClassInfo unit, boolean dynamic)
Creates a meta info.NFPropertyMetaInfo(java.lang.String name, ClassInfo type, ClassInfo unit, boolean dynamic, long updaterate, boolean realtime, INFProperty.Target target)
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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Gets the name of the property.INFProperty.Target
getTarget()
Get the target.ClassInfo
getType()
Gets the type of the property.ClassInfo
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(ClassInfo type)
Sets the type of the property.void
setUnit(ClassInfo unit)
Sets the unit of the property.void
setUpdateRate(long updaterate)
Sets the update rate of the property for dynamic properties.
-
-
-
Field Detail
-
name
protected java.lang.String name
Name of the property.
-
type
protected ClassInfo type
Type of the property.
-
unit
protected ClassInfo unit
Unit of the property value.
-
dynamic
protected boolean dynamic
Flag indicating if the property is dynamic.
-
updaterate
protected long updaterate
The update rate.
-
realtime
protected boolean realtime
Flag indicating if the update rate is real time.
-
target
protected INFProperty.Target target
The target.
-
-
Constructor Detail
-
NFPropertyMetaInfo
public NFPropertyMetaInfo()
Creates an empty meta info.
-
NFPropertyMetaInfo
public NFPropertyMetaInfo(java.lang.String name, ClassInfo type)
Creates a meta info.- Parameters:
name
- Name of the property.
-
NFPropertyMetaInfo
public NFPropertyMetaInfo(java.lang.String name, java.lang.Class<?> type, java.lang.Class<?> unit, boolean dynamic)
Creates a meta info.- Parameters:
name
- Name of the property.
-
NFPropertyMetaInfo
public NFPropertyMetaInfo(java.lang.String name, ClassInfo type, ClassInfo unit, boolean dynamic)
Creates a meta info.- Parameters:
name
- Name of the property.
-
NFPropertyMetaInfo
public 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.- Parameters:
name
- Name of the property.
-
NFPropertyMetaInfo
public NFPropertyMetaInfo(java.lang.String name, ClassInfo type, ClassInfo unit, boolean dynamic, long updaterate, boolean realtime, INFProperty.Target target)
Creates a meta info.- Parameters:
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.
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the name of the property.- Specified by:
getName
in interfaceINFPropertyMetaInfo
- Returns:
- The name of the property.
-
getType
public ClassInfo getType()
Gets the type of the property.- Specified by:
getType
in interfaceINFPropertyMetaInfo
- Returns:
- The type of the property.
-
getUnit
public ClassInfo getUnit()
Gets the unit of the property.- Specified by:
getUnit
in interfaceINFPropertyMetaInfo
- Returns:
- The unit of the property.
-
isDynamic
public boolean isDynamic()
Checks if the property is dynamic.- Specified by:
isDynamic
in interfaceINFPropertyMetaInfo
- Returns:
- The dynamic.
-
getUpdateRate
public long getUpdateRate()
Gets the update rate of the property, if it exists, for dynamic properties.- Specified by:
getUpdateRate
in interfaceINFPropertyMetaInfo
- Returns:
- The update rate.
-
isRealtime
public boolean isRealtime()
Checks if the property is real time.- Specified by:
isRealtime
in interfaceINFPropertyMetaInfo
- Returns:
- The real time flag.
-
setName
public void setName(java.lang.String name)
Sets the name of the property.- Parameters:
name
- The name of the property.
-
setType
public void setType(ClassInfo type)
Sets the type of the property.- Parameters:
type
- The type.
-
setUnit
public void setUnit(ClassInfo unit)
Sets the unit of the property.- Parameters:
unit
- The unit of the property.
-
setDynamic
public void setDynamic(boolean dynamic)
Sets the dynamic flag of the property.- Parameters:
dynamic
- The dynamic flag value.
-
setUpdateRate
public void setUpdateRate(long updaterate)
Sets the update rate of the property for dynamic properties.- Parameters:
updaterate
- The update rate.
-
setRealtime
public void setRealtime(boolean realtime)
Sets the real time flag of the property.- Parameters:
realtime
- The real time flag value.
-
getTarget
public INFProperty.Target getTarget()
Get the target.- Specified by:
getTarget
in interfaceINFPropertyMetaInfo
- Returns:
- The target.
-
setTarget
public void setTarget(INFProperty.Target target)
Set the target.- Parameters:
target
- The target to set.
-
-