001 package com.hammurapi.reasoning.impl;
002
003 /**
004 * Holds information about rule flow token.
005 * @author Pavel Vlasov
006 *
007 */
008 public class TokenInfo {
009
010 public TokenInfo() {
011
012 }
013
014 public TokenInfo(int parameterIndex, Class<?> type) {
015 super();
016 this.parameterIndex = parameterIndex;
017 this.type = type;
018 }
019
020 private int parameterIndex = -1;
021
022 private Class<?> type;
023
024 public int getParameterIndex() {
025 return parameterIndex;
026 }
027
028 /**
029 * Parameter index - applicable to input pins and conclusion output pins.
030 * Default value is -1 (invalid index).
031 * @param parameterIndex
032 */
033 public void setParameterIndex(int parameterIndex) {
034 this.parameterIndex = parameterIndex;
035 }
036
037 public Class<?> getType() {
038 return type;
039 }
040
041 public void setType(Class<?> type) {
042 this.type = type;
043 }
044
045 }