Package de.dlr.proseo.planner
Class PlannerResultMessage
java.lang.Object
de.dlr.proseo.planner.PlannerResultMessage
Wrapper class for ProseoMessages
- Author:
- Ernst Melchinger
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new instance of PlannerResultMessage with a given prosEO message. -
Method Summary
Modifier and TypeMethodDescriptioncopy(PlannerResultMessage msg) Copy the contents of another PlannerResultMessage to this instance.intgetCode()Get the message code.org.slf4j.event.LevelgetLevel()Get the message level.Get the prosEO message.booleanCheck if the message is considered successful.getText()Get the complete message text.voidsetMessage(ProseoMessage message) Set the prosEO message.voidSet the complete message text.
-
Constructor Details
-
PlannerResultMessage
Create a new instance of PlannerResultMessage with a given prosEO message.- Parameters:
msg- The prosEO message.
-
-
Method Details
-
getMessage
Get the prosEO message.- Returns:
- The prosEO message.
-
getText
Get the complete message text.- Returns:
- The complete message text.
-
setMessage
Set the prosEO message.- Parameters:
message- The prosEO message to set.
-
setText
Set the complete message text.- Parameters:
text- The complete message text to set.
-
copy
Copy the contents of another PlannerResultMessage to this instance.- Parameters:
msg- The PlannerResultMessage to copy.- Returns:
- This PlannerResultMessage instance.
-
getSuccess
public boolean getSuccess()Check if the message is considered successful. A message is considered successful unless its level is error.- Returns:
- True if the message is successful, false otherwise.
-
getCode
public int getCode()Get the message code.- Returns:
- The message code.
-
getLevel
public org.slf4j.event.Level getLevel()Get the message level.- Returns:
- The message level.
-