|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Common.DefaultMessage
public class DefaultMessage
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Common.interfaces.CMMsg |
|---|
CMMsg.CheckedMsgResponse, CMMsg.Desc, CMMsg.View |
| Field Summary | |
|---|---|
protected MOB |
myAgent
|
protected Environmental |
myTarget
|
protected Environmental |
myTool
|
protected int |
othersMajorMask
|
protected int |
othersMinorType
|
protected java.lang.String |
othersMsg
|
protected int |
sourceMajorMask
|
protected int |
sourceMinorType
|
protected java.lang.String |
sourceMsg
|
protected int |
targetMajorMask
|
protected int |
targetMinorType
|
protected java.lang.String |
targetMsg
|
protected java.util.List<CMMsg> |
trailMsgs
|
protected java.util.List<java.lang.Runnable> |
trailRunnables
|
protected int |
value
|
| Constructor Summary | |
|---|---|
DefaultMessage()
|
|
| Method Summary | |
|---|---|
CMMsg |
addTrailerMsg(CMMsg msg)
Appends to the list of other CMMsg events which are slated to be confirmed and executed AFTER this current message is handled. |
CMMsg |
addTrailerRunnable(java.lang.Runnable r)
Appends to the list of Runnable objects which are slated to be confirmed and executed AFTER this current message is handled. |
boolean |
amISource(MOB thisOne)
Returns whether the given Environmental object is, in fact, the source of this message. |
boolean |
amITarget(Environmental thisOne)
Returns whether the given Environmental object is, in fact, the target of this message. |
int |
compareTo(CMObject o)
|
CMObject |
copyOf()
Similar to Cloneable.clone(), but does its best to make sure that any internal objects to this class are also copyOfed. |
boolean |
equals(java.lang.Object o)
|
protected void |
finalize()
|
int |
hashCode()
|
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
void |
initializeClass()
Called ONCE after all objects are loaded, but before the map is read in during initialization. |
boolean |
isOthers(Environmental E)
Returns whether the given Environmental object is neither the source nor the target of this message. |
boolean |
isOthers(int codeOrMask)
Returns whether the given code or mask is either the minor code or a part of the major code of the othersCode |
boolean |
isOthers(java.lang.String codeOrMaskDesc)
Returns whether the given code or mask string matches the minor code or a part of the major code of the othersCode. |
boolean |
isOthersMajor(java.lang.String codeOrMaskDesc)
Returns whether the given code or mask string matches a part of the major code of the othersCode. |
boolean |
isOthersMinor(java.lang.String codeOrMaskDesc)
Returns whether the given code or mask string matches the minor sourceCode (Others are everyone not source, not target) |
boolean |
isSource(Environmental E)
Returns whether the given Environmental object is, in fact, the source of this message. |
boolean |
isSource(int codeOrMask)
Returns whether the given code or mask is either the minor code or a part of the major code of the sourceCode |
boolean |
isSource(java.lang.String codeOrMaskDesc)
Returns whether the given code or mask string matches the minor code or a part of the major code of the sourceCode. |
boolean |
isSourceMajor(java.lang.String codeOrMaskDesc)
Returns whether the given code or mask string matches a part of the major code of the sourceCode. |
boolean |
isSourceMinor(java.lang.String codeOrMaskDesc)
Returns whether the given code or mask string matches the minor sourceCode |
boolean |
isTarget(Environmental E)
Returns whether the given Environmental object is, in fact, the target of this message. |
boolean |
isTarget(int codeOrMask)
Returns whether the given code or mask is either the minor code or a part of the major code of the targetCode |
boolean |
isTarget(java.lang.String codeOrMaskDesc)
Returns whether the given code or mask string matches the minor code or a part of the major code of the targetCode. |
boolean |
isTargetMajor(java.lang.String codeOrMaskDesc)
Returns whether the given code or mask string matches a part of the major code of the targetCode. |
boolean |
isTargetMinor(java.lang.String codeOrMaskDesc)
Returns whether the given code or mask string matches the minor sourceCode |
protected static boolean |
matches(int major,
int minor,
int code)
|
protected static boolean |
matches(int major,
int minor,
java.lang.String code2)
|
CMMsg |
modify(int newAllCode,
java.lang.String allMessage)
Modifies one of more fields in this event. |
CMMsg |
modify(int newSourceCode,
java.lang.String sourceMessage,
int newTargetCode,
java.lang.String targetMessage,
int newOthersCode,
java.lang.String othersMessage)
Modifies one of more fields in this event. |
CMMsg |
modify(MOB source,
Environmental target,
Environmental tool,
int newSourceCode,
int newTargetCode,
int newOthersCode,
java.lang.String allMessage)
Modifies one of more fields in this event. |
CMMsg |
modify(MOB source,
Environmental target,
Environmental tool,
int newAllCode,
java.lang.String allMessage)
Modifies one of more fields in this event. |
CMMsg |
modify(MOB source,
Environmental target,
Environmental tool,
int newSourceCode,
java.lang.String sourceMessage,
int newTargetCode,
java.lang.String targetMessage,
int newOthersCode,
java.lang.String othersMessage)
Modifies one of more fields in this event. |
CMMsg |
modify(MOB source,
Environmental target,
Environmental tool,
int newAllCode,
java.lang.String sourceMessage,
java.lang.String targetMessage,
java.lang.String othersMessage)
Modifies one of more fields in this event. |
CMMsg |
modify(MOB source,
Environmental target,
int newAllCode,
java.lang.String allMessage)
Modifies one of more fields in this event. |
CMMsg |
modify(MOB source,
int newAllCode,
java.lang.String allMessage)
Modifies one of more fields in this event. |
CMMsg |
modify(MOB source,
int newAllCode,
java.lang.String allMessage,
int newValue)
Modifies one of more fields in this event. |
CMMsg |
modify(java.lang.String allMessage)
Modifies one of more fields in this event. |
java.lang.String |
name()
The displayable name of this object. |
CMObject |
newInstance()
Returns a new instance of this class. |
int |
othersCode()
A combination bitmask, action type integer that describes information about how this event affects or is perceived by the others of the action. |
int |
othersMajor()
Returns high order bitmask for the others code (Others are everyone not source, not target) |
boolean |
othersMajor(int bitMask)
Returns whether high order bitmask for the others code is set (Others are everyone not source, not target) |
java.lang.String |
othersMessage()
Returns the string seen by the others of the event, and only by the others of the event. |
int |
othersMinor()
Returns low order action type integer for the others code (Others are everyone not source, not target) |
protected CMObject |
parseFlatObject(java.lang.String part,
CMClass.CMObjectType preferClass)
|
void |
parseFlatString(java.lang.String flat)
Unserializes this message as well as it reasonably can. |
boolean |
sameAs(CMMsg E)
Whether this object instance is functionally identical to the object passed in. |
CMMsg |
setOthersCode(int code)
A combination bitmask, action type integer that describes information about how this event affects or is perceived by the others of the action. |
CMMsg |
setOthersMessage(java.lang.String str)
Sets the string seen by the others of the event, and only by the others of the event. |
CMMsg |
setSource(MOB mob)
Sets the source of this event, a MOB object |
CMMsg |
setSourceCode(int code)
A combination bitmask, action type integer that describes information about how this event affects or is perceived by the source of the action. |
CMMsg |
setSourceMessage(java.lang.String str)
Sets the string seen by the source of the event, and only by the source of the event. |
CMMsg |
setTarget(Environmental E)
Sets the target of this event, an Environmental object |
CMMsg |
setTargetCode(int code)
A combination bitmask, action type integer that describes information about how this event affects or is perceived by the target of the action. |
CMMsg |
setTargetMessage(java.lang.String str)
Sets the string seen by the target of the event, and only by the target of the event. |
CMMsg |
setTool(Environmental E)
Sets the means, item, portal, or otherwise tool that helps the source affect the event upon the target. |
CMMsg |
setValue(int amount)
Sets an arbitrary integer value associated with this event. |
MOB |
source()
Returns the source of this event, a MOB object |
int |
sourceCode()
A combination bitmask, action type integer that describes information about how this event affects or is perceived by the source of the action. |
int |
sourceMajor()
Returns high order bitmask for the source code |
boolean |
sourceMajor(int bitMask)
Returns whether high order bitmask for the source code is set |
java.lang.String |
sourceMessage()
Returns the string seen by the source of the event, and only by the source of the event. |
int |
sourceMinor()
Returns low order action type integer for the target code |
Environmental |
target()
Returns the target of this event, an Environmental object |
int |
targetCode()
A combination bitmask, action type integer that describes information about how this event affects or is perceived by the target of the action. |
int |
targetMajor()
Returns high order bitmask for the target code |
boolean |
targetMajor(int bitMask)
Returns whether high order bitmask for the target code is set |
java.lang.String |
targetMessage()
Returns the string seen by the target of the event, and only by the target of the event. |
int |
targetMinor()
Returns low order action type integer for the target code |
java.lang.String |
toFlatString()
Serializes this message as well as it reasonably can. |
Environmental |
tool()
Returns the means, item, portal, or otherwise tool that helps the source affect the event upon the target. |
java.util.List<CMMsg> |
trailerMsgs()
Returns a List of other CMMsg events which are slated to be confirmed and executed AFTER this current message is handled. |
java.util.List<java.lang.Runnable> |
trailerRunnables()
Returns a List of other Runnables which are slated to be and executed AFTER this current message is handled. |
int |
value()
Returns the arbitrary value integer associated with this event. |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int targetMajorMask
protected int sourceMajorMask
protected int othersMajorMask
protected int targetMinorType
protected int sourceMinorType
protected int othersMinorType
protected java.lang.String targetMsg
protected java.lang.String othersMsg
protected java.lang.String sourceMsg
protected MOB myAgent
protected Environmental myTarget
protected Environmental myTool
protected int value
protected java.util.List<CMMsg> trailMsgs
protected java.util.List<java.lang.Runnable> trailRunnables
| Constructor Detail |
|---|
public DefaultMessage()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectpublic java.lang.String name()
CMObject
name in interface CMObjectEnvironmental.Name()public CMObject newInstance()
CMObject
newInstance in interface CMObjectpublic void initializeClass()
CMObject
initializeClass in interface CMObjectpublic int compareTo(CMObject o)
compareTo in interface java.lang.Comparable<CMObject>public CMObject copyOf()
CMObject
copyOf in interface CMObject
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
public CMMsg modify(MOB source,
Environmental target,
int newAllCode,
java.lang.String allMessage)
CMMsg
modify in interface CMMsgsource - the source of the eventtarget - the target of the eventnewAllCode - the source, target, and others codeallMessage - the source, target, and others message
CMMsg.source(),
CMMsg.target(),
CMMsg.sourceCode(),
CMMsg.targetCode(),
CMMsg.othersCode(),
CMMsg.sourceMessage(),
CMMsg.targetMessage(),
CMMsg.othersMessage()public CMMsg modify(java.lang.String allMessage)
CMMsg
modify in interface CMMsgallMessage - the new source, target, and others message of this event
CMMsg.source(),
CMMsg.target(),
CMMsg.sourceCode(),
CMMsg.targetCode(),
CMMsg.othersCode(),
CMMsg.sourceMessage(),
CMMsg.targetMessage(),
CMMsg.othersMessage()
public CMMsg modify(MOB source,
int newAllCode,
java.lang.String allMessage)
CMMsg
modify in interface CMMsgsource - the new source of this eventnewAllCode - the new source, target, and others code of this eventallMessage - the new source, target, and others message of this event
CMMsg.source(),
CMMsg.target(),
CMMsg.sourceCode(),
CMMsg.targetCode(),
CMMsg.othersCode(),
CMMsg.sourceMessage(),
CMMsg.targetMessage(),
CMMsg.othersMessage()
public CMMsg modify(MOB source,
int newAllCode,
java.lang.String allMessage,
int newValue)
CMMsg
modify in interface CMMsgsource - the new source of this eventnewAllCode - the new source, target, and others code of this eventallMessage - the new source, target, and others message of this eventnewValue - the new value for this event
CMMsg.source(),
CMMsg.target(),
CMMsg.sourceCode(),
CMMsg.targetCode(),
CMMsg.othersCode(),
CMMsg.sourceMessage(),
CMMsg.targetMessage(),
CMMsg.othersMessage(),
CMMsg.value()
public CMMsg modify(MOB source,
Environmental target,
Environmental tool,
int newAllCode,
java.lang.String allMessage)
CMMsg
modify in interface CMMsgsource - the new source of this eventtarget - the new target of this eventtool - the new tool for this eventnewAllCode - the new source, target, and others code of this eventallMessage - the new source, target, and others message of this event
CMMsg.source(),
CMMsg.target(),
CMMsg.sourceCode(),
CMMsg.targetCode(),
CMMsg.othersCode(),
CMMsg.sourceMessage(),
CMMsg.targetMessage(),
CMMsg.othersMessage()
public CMMsg modify(MOB source,
Environmental target,
Environmental tool,
int newAllCode,
java.lang.String sourceMessage,
java.lang.String targetMessage,
java.lang.String othersMessage)
CMMsg
modify in interface CMMsgsource - the new source of this eventtarget - the new target of this eventtool - the new tool for this eventnewAllCode - the new source, target, and others code of this eventsourceMessage - the new source message for this eventtargetMessage - the new target message for this eventothersMessage - the new others message for this event
CMMsg.source(),
CMMsg.target(),
CMMsg.sourceCode(),
CMMsg.targetCode(),
CMMsg.othersCode(),
CMMsg.sourceMessage(),
CMMsg.targetMessage(),
CMMsg.othersMessage()public CMMsg setSourceCode(int code)
CMMsg
setSourceCode in interface CMMsgcode - the new full bitmask/action type source event code
CMMsg.source(),
CMMsg.sourceMessage(),
CMMsg.sourceCode(),
CMMsg.sourceMajor(int),
CMMsg.sourceMinor(),
CMMsg.MASK_MAGIC,
CMMsg.TYP_CAST_SPELLpublic CMMsg setTargetCode(int code)
CMMsg
setTargetCode in interface CMMsgcode - the new full bitmask/action type target event code
CMMsg.target(),
CMMsg.targetMessage(),
CMMsg.targetCode(),
CMMsg.targetMajor(int),
CMMsg.targetMinor(),
CMMsg.MASK_MAGIC,
CMMsg.TYP_CAST_SPELLpublic CMMsg setOthersCode(int code)
CMMsg
setOthersCode in interface CMMsgcode - the new full bitmask/action type others event code
CMMsg.othersMessage(),
CMMsg.othersCode(),
CMMsg.othersMajor(int),
CMMsg.othersMinor(),
CMMsg.MASK_MAGIC,
CMMsg.TYP_CAST_SPELLpublic CMMsg setSourceMessage(java.lang.String str)
CMMsg
setSourceMessage in interface CMMsgstr - the string to show to the source, or NULL
CMMsg.source(),
CMMsg.sourceMessage(),
CMMsg.sourceCode()public CMMsg setTargetMessage(java.lang.String str)
CMMsg
setTargetMessage in interface CMMsgstr - the string to show to the target, or NULL
CMMsg.target(),
CMMsg.targetMessage(),
CMMsg.targetCode()public CMMsg setOthersMessage(java.lang.String str)
CMMsg
setOthersMessage in interface CMMsgstr - the string to show to the others, or NULL
CMMsg.othersMessage(),
CMMsg.othersCode()public int value()
CMMsg
value in interface CMMsgpublic CMMsg setValue(int amount)
CMMsg
setValue in interface CMMsgamount - the integer value of this event
public java.util.List<CMMsg> trailerMsgs()
CMMsg
trailerMsgs in interface CMMsgRoom.send(MOB, CMMsg)public java.util.List<java.lang.Runnable> trailerRunnables()
CMMsg
trailerRunnables in interface CMMsgRoom.send(MOB, CMMsg)public CMMsg addTrailerMsg(CMMsg msg)
CMMsg
addTrailerMsg in interface CMMsgmsg - the CMMsg to append to this message.
Room.send(MOB, CMMsg)public CMMsg addTrailerRunnable(java.lang.Runnable r)
CMMsg
addTrailerRunnable in interface CMMsgr - the Runnable to append to this message.
Room.send(MOB, CMMsg)
public CMMsg modify(MOB source,
Environmental target,
Environmental tool,
int newSourceCode,
java.lang.String sourceMessage,
int newTargetCode,
java.lang.String targetMessage,
int newOthersCode,
java.lang.String othersMessage)
CMMsg
modify in interface CMMsgsource - the new source of this eventtarget - the new target of this eventtool - the new tool for this eventnewSourceCode - the new source code for this eventsourceMessage - the new source message for this eventnewTargetCode - the new target code for this eventtargetMessage - the new target message for this eventnewOthersCode - the new others code for this eventothersMessage - the new others message for this event
CMMsg.source(),
CMMsg.target(),
CMMsg.sourceCode(),
CMMsg.targetCode(),
CMMsg.othersCode(),
CMMsg.sourceMessage(),
CMMsg.targetMessage(),
CMMsg.othersMessage()
public CMMsg modify(MOB source,
Environmental target,
Environmental tool,
int newSourceCode,
int newTargetCode,
int newOthersCode,
java.lang.String allMessage)
CMMsg
modify in interface CMMsgsource - the new source of this eventtarget - the new target of this eventtool - the new tool for this eventnewSourceCode - the new source code for this eventnewTargetCode - the new target code for this eventnewOthersCode - the new others code for this eventallMessage - the new source, target, and others message of this event
CMMsg.source(),
CMMsg.target(),
CMMsg.sourceCode(),
CMMsg.targetCode(),
CMMsg.othersCode(),
CMMsg.sourceMessage(),
CMMsg.targetMessage(),
CMMsg.othersMessage()
public CMMsg modify(int newAllCode,
java.lang.String allMessage)
CMMsg
modify in interface CMMsgnewAllCode - the new source, target, and others code of this eventallMessage - the new source, target, and others message of this event
CMMsg.source(),
CMMsg.target(),
CMMsg.sourceCode(),
CMMsg.targetCode(),
CMMsg.othersCode(),
CMMsg.sourceMessage(),
CMMsg.targetMessage(),
CMMsg.othersMessage()
public CMMsg modify(int newSourceCode,
java.lang.String sourceMessage,
int newTargetCode,
java.lang.String targetMessage,
int newOthersCode,
java.lang.String othersMessage)
CMMsg
modify in interface CMMsgnewSourceCode - the new source code for this eventsourceMessage - the new source message for this eventnewTargetCode - the new target code for this eventtargetMessage - the new target message for this eventnewOthersCode - the new others code for this eventothersMessage - the new others message for this event
CMMsg.source(),
CMMsg.target(),
CMMsg.sourceCode(),
CMMsg.targetCode(),
CMMsg.othersCode(),
CMMsg.sourceMessage(),
CMMsg.targetMessage(),
CMMsg.othersMessage()public final MOB source()
CMMsg
source in interface CMMsgCMMsg.setSource(MOB),
MOBpublic final CMMsg setSource(MOB mob)
CMMsg
setSource in interface CMMsgmob - the new source of this event
CMMsg.source(),
MOBpublic final Environmental target()
CMMsg
target in interface CMMsgCMMsg.setTarget(Environmental),
Environmentalpublic final CMMsg setTarget(Environmental E)
CMMsg
setTarget in interface CMMsgE - the new target of this event
CMMsg.target(),
Environmentalpublic final Environmental tool()
CMMsg
tool in interface CMMsgEnvironmental,
CMMsg.setTool(Environmental)public final CMMsg setTool(Environmental E)
CMMsg
setTool in interface CMMsgE - the new tool of this event
Environmental,
CMMsg.tool()public final int targetMajor()
CMMsg
targetMajor in interface CMMsgCMMsg.targetCode(),
CMMsg.targetMinor(),
CMMsg.MASK_MAGICpublic final int sourceMajor()
CMMsg
sourceMajor in interface CMMsgCMMsg.sourceCode(),
CMMsg.sourceMinor(),
CMMsg.MASK_MAGICpublic final int othersMajor()
CMMsg
othersMajor in interface CMMsgCMMsg.othersCode(),
CMMsg.othersMinor(),
CMMsg.MASK_MAGICpublic final boolean targetMajor(int bitMask)
CMMsg
targetMajor in interface CMMsgbitMask - the bitmask to check for
CMMsg.targetCode(),
CMMsg.targetMinor(),
CMMsg.MASK_MAGICpublic final int targetMinor()
CMMsg
targetMinor in interface CMMsgCMMsg.targetCode(),
CMMsg.targetMajor(int),
CMMsg.TYP_CAST_SPELLpublic final int targetCode()
CMMsg
targetCode in interface CMMsgCMMsg.target(),
CMMsg.targetMessage(),
CMMsg.targetMajor(int),
CMMsg.targetMinor(),
CMMsg.MASK_MAGIC,
CMMsg.TYP_CAST_SPELL,
CMMsg.setTargetCode(int)public final java.lang.String targetMessage()
CMMsg
targetMessage in interface CMMsgCMMsg.target(),
CMMsg.setTargetMessage(String),
CMMsg.targetCode()public final int sourceCode()
CMMsg
sourceCode in interface CMMsgCMMsg.source(),
CMMsg.sourceMessage(),
CMMsg.sourceMajor(int),
CMMsg.sourceMinor(),
CMMsg.MASK_MAGIC,
CMMsg.TYP_CAST_SPELL,
CMMsg.setSourceCode(int)public final boolean sourceMajor(int bitMask)
CMMsg
sourceMajor in interface CMMsgbitMask - the bitmask to check for
CMMsg.sourceCode(),
CMMsg.sourceMinor(),
CMMsg.MASK_MAGICpublic final int sourceMinor()
CMMsg
sourceMinor in interface CMMsgCMMsg.targetCode(),
CMMsg.targetMajor(int),
CMMsg.TYP_CAST_SPELLpublic final java.lang.String sourceMessage()
CMMsg
sourceMessage in interface CMMsgCMMsg.source(),
CMMsg.setSourceMessage(String),
CMMsg.sourceCode()public final boolean othersMajor(int bitMask)
CMMsg
othersMajor in interface CMMsgbitMask - the bitmask to check for
CMMsg.othersCode(),
CMMsg.othersMinor(),
CMMsg.MASK_MAGICpublic final int othersMinor()
CMMsg
othersMinor in interface CMMsgCMMsg.othersCode(),
CMMsg.othersMajor(int),
CMMsg.TYP_CAST_SPELLpublic final int othersCode()
CMMsg
othersCode in interface CMMsgCMMsg.othersMessage(),
CMMsg.othersMajor(int),
CMMsg.othersMinor(),
CMMsg.MASK_MAGIC,
CMMsg.TYP_CAST_SPELL,
CMMsg.setOthersCode(int)public final java.lang.String othersMessage()
CMMsg
othersMessage in interface CMMsgCMMsg.setOthersMessage(String),
CMMsg.othersCode()public final boolean amITarget(Environmental thisOne)
CMMsg
amITarget in interface CMMsgthisOne - the Environmental to inspect, may not be null
CMMsg.target(),
Environmentalpublic final boolean amISource(MOB thisOne)
CMMsg
amISource in interface CMMsgthisOne - the Environmental to inspect, may not be null
CMMsg.source(),
Environmentalpublic final boolean isTarget(Environmental E)
CMMsg
isTarget in interface CMMsgE - the Environmental to inspect, may not be null
CMMsg.target(),
Environmentalpublic final boolean isTarget(int codeOrMask)
CMMsg
isTarget in interface CMMsgcodeOrMask - the target action code or target major mask to check
CMMsg.targetCode()public final boolean isTarget(java.lang.String codeOrMaskDesc)
CMMsg
isTarget in interface CMMsgcodeOrMaskDesc - the target action code string, or mask string
CMMsg.TYPE_DESCS,
CMMsg.MASK_DESCS,
CMMsg.targetCode()public final boolean isTargetMajor(java.lang.String codeOrMaskDesc)
CMMsg
isTargetMajor in interface CMMsgcodeOrMaskDesc - the target action code string, or mask string
CMMsg.TYPE_DESCS,
CMMsg.MASK_DESCS,
CMMsg.targetCode()public final boolean isTargetMinor(java.lang.String codeOrMaskDesc)
CMMsg
isTargetMinor in interface CMMsgcodeOrMaskDesc - the target action code string, or mask string
CMMsg.TYPE_DESCS,
CMMsg.MASK_DESCS,
CMMsg.targetCode()public final boolean isSource(Environmental E)
CMMsg
isSource in interface CMMsgE - the Environmental to inspect, may not be null
CMMsg.source(),
Environmentalpublic final boolean isSource(int codeOrMask)
CMMsg
isSource in interface CMMsgcodeOrMask - the source action code or source major mask to check
CMMsg.sourceCode()public final boolean isSource(java.lang.String codeOrMaskDesc)
CMMsg
isSource in interface CMMsgcodeOrMaskDesc - the source action code string, or mask string
CMMsg.TYPE_DESCS,
CMMsg.MASK_DESCS,
CMMsg.sourceCode()public final boolean isSourceMajor(java.lang.String codeOrMaskDesc)
CMMsg
isSourceMajor in interface CMMsgcodeOrMaskDesc - the source action code string, or mask string
CMMsg.TYPE_DESCS,
CMMsg.MASK_DESCS,
CMMsg.sourceCode()public final boolean isSourceMinor(java.lang.String codeOrMaskDesc)
CMMsg
isSourceMinor in interface CMMsgcodeOrMaskDesc - the source action code string, or mask string
CMMsg.TYPE_DESCS,
CMMsg.MASK_DESCS,
CMMsg.sourceCode()public final boolean isOthers(Environmental E)
CMMsg
isOthers in interface CMMsgE - the Environmental to inspect, may not be null
Environmental,
CMMsg.source(),
CMMsg.target()public final boolean isOthers(int codeOrMask)
CMMsg
isOthers in interface CMMsgcodeOrMask - the others action code or others major mask to check
CMMsg.othersCode()public final boolean isOthers(java.lang.String codeOrMaskDesc)
CMMsg
isOthers in interface CMMsgcodeOrMaskDesc - the others action code string, or mask string
CMMsg.TYPE_DESCS,
CMMsg.MASK_DESCS,
CMMsg.othersCode()public final boolean isOthersMajor(java.lang.String codeOrMaskDesc)
CMMsg
isOthersMajor in interface CMMsgcodeOrMaskDesc - the others action code string, or mask string
CMMsg.TYPE_DESCS,
CMMsg.MASK_DESCS,
CMMsg.othersCode()public final boolean isOthersMinor(java.lang.String codeOrMaskDesc)
CMMsg
isOthersMinor in interface CMMsgcodeOrMaskDesc - the others action code string, or mask string
CMMsg.TYPE_DESCS,
CMMsg.MASK_DESCS,
CMMsg.othersCode()
protected static final boolean matches(int major,
int minor,
int code)
protected static final boolean matches(int major,
int minor,
java.lang.String code2)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toFlatString()
CMMsg
toFlatString in interface CMMsgCMMsg.parseFlatString(String)
protected CMObject parseFlatObject(java.lang.String part,
CMClass.CMObjectType preferClass)
public void parseFlatString(java.lang.String flat)
CMMsg
parseFlatString in interface CMMsgflat - the serialized messageCMMsg.toFlatString()public boolean sameAs(CMMsg E)
CMMsg
sameAs in interface CMMsgE - the object to compare this one to
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||