// Copyright (C) 2008-2009 Christian M. Zmasek
// Copyright (C) 2008-2009 Burnham Institute for Medical Research
// All rights reserved
// Copyright (C) 2008-2009 Christian M. Zmasek
// Copyright (C) 2008-2009 Burnham Institute for Medical Research
// All rights reserved
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
//
// Contact: phylosoft @ gmail . com
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
//
// Contact: phylosoft @ gmail . com
import org.forester.util.ForesterUtil;
public class BasicBinaryDomainCombination implements BinaryDomainCombination {
import org.forester.util.ForesterUtil;
public class BasicBinaryDomainCombination implements BinaryDomainCombination {
- public BasicBinaryDomainCombination( final DomainId id_0, final DomainId id_1 ) {
- if ( ( id_0 == null ) || ( id_1 == null ) ) {
+ private String getAsStr() {
+ return _id0 + SEPARATOR + _id1;
+ }
+
+ public BasicBinaryDomainCombination( final String id0, final String id1 ) {
+ if ( ( id0 == null ) || ( id1 == null ) ) {
@Override
public int compareTo( final BinaryDomainCombination binary_domain_combination ) {
if ( binary_domain_combination.getClass() != this.getClass() ) {
@Override
public int compareTo( final BinaryDomainCombination binary_domain_combination ) {
if ( binary_domain_combination.getClass() != this.getClass() ) {
public StringBuffer toGraphDescribingLanguage( final OutputFormat format,
final String node_attribute,
final String edge_attribute ) {
public StringBuffer toGraphDescribingLanguage( final OutputFormat format,
final String node_attribute,
final String edge_attribute ) {