Package net.sourceforge.jarduino.message
Class ArduinoMsgFilter
java.lang.Object
net.sourceforge.jarduino.message.ArduinoMsgFilter
public class ArduinoMsgFilter extends Object
Message selection.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ArduinoMsgFilter()
Constructor. -
Method Summary
Modifier and Type Method Description boolean
hasSelected()
Does the map have any selected entries.boolean
isBuilt(String pId)
Is the message selected for build?boolean
isEmpty()
Is the selection empty?boolean
isParsed(String pId)
Is the message selected for parse?boolean
isSelected(String pId)
Is the message selected?boolean
publicFields()
Are fields public?void
removeMessage(String pId)
Remove message.void
resetSelection(ArduinoNamedObject pObject)
Reset the selection for a new object.void
resetSelection(ArduinoNode pNode)
Match the selection to a node.void
resetSelection(ArduinoSystem pSystem)
Reset the selection for a new system.void
selectMessage(String pId)
Select message.int
size()
Obtain the number of messages.void
toggleFlag(String pId, int pFlag)
Toggle the flag for the message.void
togglePublicFields()
toggle public fields.
-
Field Details
-
PARSEMSG
public static final int PARSEMSGParse message indication.- See Also:
- Constant Field Values
-
BUILDMSG
public static final int BUILDMSGBuild message indication.- See Also:
- Constant Field Values
-
-
Constructor Details
-
ArduinoMsgFilter
public ArduinoMsgFilter()Constructor.
-
-
Method Details
-
size
public int size()Obtain the number of messages.- Returns:
- the number of messages
-
isEmpty
public boolean isEmpty()Is the selection empty?- Returns:
- true/false
-
publicFields
public boolean publicFields()Are fields public?- Returns:
- true/false
-
togglePublicFields
public void togglePublicFields()toggle public fields. -
hasSelected
public boolean hasSelected()Does the map have any selected entries.- Returns:
- true/false
-
isSelected
Is the message selected?- Parameters:
pId
- the messageId- Returns:
- true/false
-
isParsed
Is the message selected for parse?- Parameters:
pId
- the messageId- Returns:
- true/false
-
isBuilt
Is the message selected for build?- Parameters:
pId
- the messageId- Returns:
- true/false
-
toggleFlag
Toggle the flag for the message.- Parameters:
pId
- the messageIdpFlag
- the flag
-
selectMessage
Select message.- Parameters:
pId
- the messageId
-
removeMessage
Remove message.- Parameters:
pId
- the messageId
-
resetSelection
Reset the selection for a new object.- Parameters:
pObject
- the object
-
resetSelection
Reset the selection for a new system.- Parameters:
pSystem
- the system
-
resetSelection
Match the selection to a node.- Parameters:
pNode
- the node
-