1 /* 2 Copyright 2008 Ramon Servadei 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 package fulmine; 17 18 /** 19 * Represents the domain component of an {@link IAddressable} entity. The domain 20 * expresses a mode of existence of the entity. 21 * 22 * @author Ramon Servadei 23 */ 24 public interface IDomain 25 { 26 /** 27 * Get a byte representing the domain component for the entity. 28 * 29 * @return a byte representing the domain component for the entity. 30 */ 31 byte value(); 32 33 /** 34 * Get the name for the domain. 35 * 36 * @return the name for the domain 37 */ 38 String getName(); 39 }