Ila

org.topoweb.ila.server.spi
Interface CoLinkPolicy


public interface CoLinkPolicy

Encapsulates the policy used to decide whether a link is a co-link or a regular link. Generally, the idea behind a co-link is that the owners of the resources at the end-points of the link are somehow related or in cahoots. A simple approach for deciding whether any 2 linked ORIs qualify as co-links is to examine their domain names.

Note

This is not necessarily a globally transitive property. That is each Ila server can potentially define its CoLinkPolicy in a way that conflicts with that of another server. From a local perspective, we expect the isCoLink method to be transitive with respect to its arguments, but again, this behavior is not strictly required.

Author:
Babak Farhang
See Also:
State.getCoLinkCount(int)

Method Summary
 boolean isCoLink(org.topoweb.net.Ori ori1, org.topoweb.net.Ori ori2)
          Returns whether the link represented by the specified end-points should be classified as a co-link.
 

Method Detail

isCoLink

public boolean isCoLink(org.topoweb.net.Ori ori1,
                        org.topoweb.net.Ori ori2)
Returns whether the link represented by the specified end-points should be classified as a co-link.

Parameters:
ori1 - the ORI of the first node
ori2 - the ORI of the second node
Returns:
true if the arguments qualify as co-links; false, o.w.

Ila

Copyright (C) 2002 Babak Farhang

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.