Package jadex.tools.comanalyzer
Class ParameterElement
- java.lang.Object
- 
- jadex.tools.comanalyzer.ParameterElement
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Comparable
 
 public abstract class ParameterElement extends java.lang.Object implements java.io.Serializable, java.lang.ComparableBase class for agents and messages. This class provides the common elements such as the parameter attribute and the setters and getters for the parameters.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringCLASSstatic java.lang.StringNAMEprotected java.util.Map<java.lang.String,java.lang.Object>parametersThe parameters.protected booleanvisibleThe visibility
 - 
Constructor SummaryConstructors Constructor Description ParameterElement()Default constructor
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompareTo(java.lang.Object o)Elements are compared by their ids.booleanequals(java.lang.Object obj)Only messages with the same id are equal.abstract java.lang.StringgetId()java.lang.ObjectgetParameter(java.lang.String name)Returns a parameter value.java.util.MapgetParameters()Returns the parameter map.booleanhasParameter(java.lang.String name)Checks if a given parameter is contained by the parameter map.booleanisVisible()voidsetParameter(java.lang.String name, java.lang.Object value)Sets a parameter valuevoidsetParameters(java.util.Map map)Replaces the existing parameter map.voidsetVisible(boolean visible)Set the visbile state.java.lang.StringtoString()
 
- 
- 
- 
Field Detail- 
CLASSpublic static final java.lang.String CLASS - See Also:
- Constant Field Values
 
 - 
NAMEpublic static final java.lang.String NAME - See Also:
- Constant Field Values
 
 - 
visibleprotected boolean visible The visibility
 - 
parametersprotected java.util.Map<java.lang.String,java.lang.Object> parameters The parameters.
 
- 
 - 
Method Detail- 
getParameterspublic java.util.Map getParameters() Returns the parameter map.- Returns:
- The parameter map.
 
 - 
getParameterpublic java.lang.Object getParameter(java.lang.String name) Returns a parameter value.- Parameters:
- name- The name of the parameter.
- Returns:
- The value.
 
 - 
setParameterspublic void setParameters(java.util.Map map) Replaces the existing parameter map.- Parameters:
- map- The parameter map.
 
 - 
setParameterpublic void setParameter(java.lang.String name, java.lang.Object value)Sets a parameter value- Parameters:
- name- The name of the parameter.
- value- The value.
 
 - 
hasParameterpublic boolean hasParameter(java.lang.String name) Checks if a given parameter is contained by the parameter map.- Parameters:
- name- The name of the parameter.
- Returns:
- trueif the parameter is contained.
 
 - 
isVisiblepublic boolean isVisible() - Returns:
- The visiblity.
 
 - 
setVisiblepublic void setVisible(boolean visible) Set the visbile state.- Parameters:
- visible- The visible state.
 
 - 
getIdpublic abstract java.lang.String getId() - Returns:
- The id of the element.
 
 - 
compareTopublic int compareTo(java.lang.Object o) Elements are compared by their ids.- Specified by:
- compareToin interface- java.lang.Comparable
 
 - 
equalspublic boolean equals(java.lang.Object obj) Only messages with the same id are equal.- Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
- Returns:
- The string representation for the element.
 
 
- 
 
-