Package velox.api.layer1.messages
Class UserMessageLayersChainCreatedTargeted
java.lang.Object
velox.api.layer1.messages.UserMessageLayersChainCreatedTargeted
- All Implemented Interfaces:
Layer1ApiIgnorableDownwardMessage
public class UserMessageLayersChainCreatedTargeted extends java.lang.Object implements Layer1ApiIgnorableDownwardMessage
Strategy will receive this message with it's target class specified when it is added and can start sending messages
(message.getClass() == (strategy class).class) should return true if it is target of the message
Note that there can be many messages of this type that are not related to your class
(message.getClass() == (strategy class).class) should return true if it is target of the message
Note that there can be many messages of this type that are not related to your class
-
Field Summary
Fields Modifier and Type Field Description boolean
isNew
Will be true if this is strategy was just added in layer chain, false if it was re-added (e.g.java.lang.Class<?>
targetClass
-
Constructor Summary
Constructors Constructor Description UserMessageLayersChainCreatedTargeted(boolean isNew)
No class will be targeted with thisUserMessageLayersChainCreatedTargeted(java.lang.Class<?> targetClass, boolean isNew)
-
Method Summary
Modifier and Type Method Description boolean
isTargeted()
-
Field Details
-
targetClass
public final java.lang.Class<?> targetClass -
isNew
public boolean isNewWill be true if this is strategy was just added in layer chain, false if it was re-added (e.g. in case of chart settings reset/inherit)
-
-
Constructor Details
-
UserMessageLayersChainCreatedTargeted
public UserMessageLayersChainCreatedTargeted(java.lang.Class<?> targetClass, boolean isNew) -
UserMessageLayersChainCreatedTargeted
public UserMessageLayersChainCreatedTargeted(boolean isNew)No class will be targeted with this
-
-
Method Details
-
isTargeted
public boolean isTargeted()
-