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 booleandynamicFlag indicating if the property is dynamic.protected java.lang.StringnameName of the property.protected booleanrealtimeFlag indicating if the update rate is real time.protected INFProperty.TargettargetThe target.protected ClassInfotypeType of the property.protected ClassInfounitUnit of the property value.protected longupdaterateThe 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.StringgetName()Gets the name of the property.INFProperty.TargetgetTarget()Get the target.ClassInfogetType()Gets the type of the property.ClassInfogetUnit()Gets the unit of the property.longgetUpdateRate()Gets the update rate of the property, if it exists, for dynamic properties.booleanisDynamic()Checks if the property is dynamic.booleanisRealtime()Checks if the property is real time.voidsetDynamic(boolean dynamic)Sets the dynamic flag of the property.voidsetName(java.lang.String name)Sets the name of the property.voidsetRealtime(boolean realtime)Sets the real time flag of the property.voidsetTarget(INFProperty.Target target)Set the target.voidsetType(ClassInfo type)Sets the type of the property.voidsetUnit(ClassInfo unit)Sets the unit of the property.voidsetUpdateRate(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:
getNamein interfaceINFPropertyMetaInfo- Returns:
- The name of the property.
-
getType
public ClassInfo getType()
Gets the type of the property.- Specified by:
getTypein interfaceINFPropertyMetaInfo- Returns:
- The type of the property.
-
getUnit
public ClassInfo getUnit()
Gets the unit of the property.- Specified by:
getUnitin interfaceINFPropertyMetaInfo- Returns:
- The unit of the property.
-
isDynamic
public boolean isDynamic()
Checks if the property is dynamic.- Specified by:
isDynamicin interfaceINFPropertyMetaInfo- Returns:
- The dynamic.
-
getUpdateRate
public long getUpdateRate()
Gets the update rate of the property, if it exists, for dynamic properties.- Specified by:
getUpdateRatein interfaceINFPropertyMetaInfo- Returns:
- The update rate.
-
isRealtime
public boolean isRealtime()
Checks if the property is real time.- Specified by:
isRealtimein 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:
getTargetin interfaceINFPropertyMetaInfo- Returns:
- The target.
-
setTarget
public void setTarget(INFProperty.Target target)
Set the target.- Parameters:
target- The target to set.
-
-