agentland.drug
Class BasicFilter

java.lang.Object
  |
  +--agentland.drug.Filter
        |
        +--agentland.drug.BasicFilter

public class BasicFilter
extends Filter

pass this filter along when requesting a drug. If you create this filter with public BasicFilter(AgentID dFrom, AgentID dTo) it will make sure that the drug you get, can be connected to dTo and that dFrom can connect to it. Either of both of dFrom and dTo can be set to null

See Also:
Serialized Form

Fields inherited from class agentland.drug.Filter
NULL_FILTER
 
Constructor Summary
BasicFilter()
           
BasicFilter(AgentID dFrom)
          I am keeping this one here strictly to maintain compatibility with earlier written things
BasicFilter(AgentID dFrom, AgentID dTo)
           
 
Method Summary
 boolean test(Drug d)
           
protected  boolean testConnectivity(Drug d)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicFilter

public BasicFilter()

BasicFilter

public BasicFilter(AgentID dFrom)
I am keeping this one here strictly to maintain compatibility with earlier written things

BasicFilter

public BasicFilter(AgentID dFrom,
                   AgentID dTo)
Method Detail

test

public boolean test(Drug d)
Overrides:
test in class Filter

testConnectivity

protected boolean testConnectivity(Drug d)