Atavism Version 2018.1AGIS API

atavism.server.engine
Class EnginePlugin.TransferFilter

java.lang.Object
  extended by atavism.msgsys.Filter
      extended by atavism.msgsys.MessageTypeFilter
          extended by atavism.server.engine.EnginePlugin.TransferFilter
All Implemented Interfaces:
IFilter, IMessageTypeFilter
Direct Known Subclasses:
WorldManagerPlugin.WorldManagerTransferFilter
Enclosing class:
EnginePlugin

public abstract static class EnginePlugin.TransferFilter
extends MessageTypeFilter

Base class for message filters used for the transfer object subscription. You must extend the abstract method matchesMap().

See Also:
EnginePlugin.registerTransferHook(Filter, Hook)

Constructor Summary
EnginePlugin.TransferFilter()
           
 
Method Summary
abstract  boolean matchesMap(java.util.Map propMap, Message msg)
          Matches the property map to the message
 boolean matchRemaining(Message msg)
          Called when we know that the message type matches the filter, to determine if the other message fields match the filter.
 
Methods inherited from class atavism.msgsys.MessageTypeFilter
addType, getMessageTypes, matchMessageType, setTypes, toString, toStringInternal
 
Methods inherited from class atavism.msgsys.Filter
applyFilterUpdate, applyFilterUpdate, getReceiveFilterTable, getResponderReceiveFilterTable, getResponderSendFilterTable, getSendFilterTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface atavism.msgsys.IFilter
applyFilterUpdate, getReceiveFilterTable, getResponderReceiveFilterTable, getResponderSendFilterTable, getSendFilterTable
 

Constructor Detail

EnginePlugin.TransferFilter

public EnginePlugin.TransferFilter()
Method Detail

matchRemaining

public boolean matchRemaining(Message msg)
Called when we know that the message type matches the filter, to determine if the other message fields match the filter.

Specified by:
matchRemaining in interface IFilter
Overrides:
matchRemaining in class MessageTypeFilter
Parameters:
msg -
Returns:
true if the message matches.

matchesMap

public abstract boolean matchesMap(java.util.Map propMap,
                                   Message msg)
Matches the property map to the message

Parameters:
propMap - passed in by the caller of the message
msg - the message sent by the caller
Returns:
true if the message matched


Copyright © 2018 Dragonsan Studios Sp. z o.o.