Package jadex.bdi.model
Class MElement
java.lang.Object
jadex.bdi.model.MElement
- Direct Known Subclasses:
MBelief
,MCapability
,MCapabilityReference
,MCondition
,MConfigBeliefElement
,MConfigParameterElement
,MConfiguration
,MElementRef
,MParameter
,MParameterElement
Base element for model elements.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Test if objects are equal.Get the capability name for an element.Get the description.Get the local name for an element, i.e.getName()
Get the name.int
hashCode()
Get the hashcode.static String
internalName
(String name) Convert a name to internal form for capability separator.void
setDescription
(String description) Set the description.void
setFlatName
(String name) Set the flat name, i.e.void
Set the name.toString()
Create a string representation.
-
Field Details
-
CAPABILITY_SEPARATOR
The capability separator.- See Also:
-
name
The element name. -
description
The element description.
-
-
Constructor Details
-
MElement
public MElement()Bean Constructor. -
MElement
Create a new element.
-
-
Method Details
-
getName
Get the name.- Returns:
- The name.
-
setName
Set the name.- Parameters:
name
- The name to set.
-
setFlatName
Set the flat name, i.e. do not replay separator chars.- Parameters:
name
- The name to set.
-
getDescription
Get the description.- Returns:
- The description.
-
setDescription
Set the description.- Parameters:
description
- The description to set.
-
getCapabilityName
Get the capability name for an element.- Returns:
- The capability name or null for global elements.
-
getElementName
Get the local name for an element, i.e. without capability prefix, if any.- Returns:
- The local element name.
-
hashCode
public int hashCode()Get the hashcode. -
equals
Test if objects are equal. -
toString
Create a string representation. -
internalName
Convert a name to internal form for capability separator.
-