001package jmri.server.json.operations; 002 003/** 004 * JSON Tokens used by JSON Operations. 005 * 006 * @author Randall Wood (C) 2016 007 */ 008public class JsonOperations { 009 010 /** 011 * {@value #CARS} 012 */ 013 public static final String CARS = "cars"; // NOI18N 014 /** 015 * {@value #TRAINS} 016 */ 017 public static final String TRAINS = "trains"; // NOI18N 018 /** 019 * {@value #CAR} 020 */ 021 public static final String CAR = "car"; // NOI18N 022 /** 023 * {@value #ENGINE} 024 */ 025 public static final String ENGINE = "engine"; // NOI18N 026 /** 027 * {@value #ENGINES} 028 */ 029 public static final String ENGINES = "engines"; // NOI18N 030 /** 031 * {@value #LOCATION} 032 */ 033 public static final String LOCATION = "location"; 034 /** 035 * {@value #LOCATION_COMMENT} 036 */ 037 public static final String LOCATION_COMMENT = "locationComment"; // NOI18N 038 /** 039 * {@value #LOCATION_ID} 040 */ 041 public static final String LOCATION_ID = "locationId"; // NOI18N 042 /** 043 * {@value #LOCATION_NAME} 044 */ 045 public static final String LOCATION_NAME = "locationName"; // NOI18N 046 /** 047 * {@value #LOCATION_UNKNOWN} 048 */ 049 public static final String LOCATION_UNKNOWN = "locationUnknown"; // NOI18N 050 /** 051 * {@value #TRAIN_ID} 052 */ 053 public static final String TRAIN_ID = "trainId"; // NOI18N 054 /** 055 * {@value #TRAIN_NAME} 056 */ 057 public static final String TRAIN_NAME = "trainName"; // NOI18N 058 /** 059 * {@value #TRAIN_ICON_NAME} 060 */ 061 public static final String TRAIN_ICON_NAME = "trainIconName"; // NOI18N 062 /** 063 * {@value #TRAIN} 064 */ 065 public static final String TRAIN = "train"; // NOI18N 066 /** 067 * {@value #LENGTH} 068 * <p> 069 * Used for rolling stock length in feet or meters 070 */ 071 public static final String LENGTH = "length"; 072 /** 073 * {@value #WEIGHT} 074 * <p> 075 * Rolling stock or a train's weight in tons 076 */ 077 public static final String WEIGHT = "weight"; 078 /** 079 * {@value #WEIGHT_TONS} 080 * <p> 081 * Used for model weight of rolling stock in tons 082 */ 083 public static final String WEIGHT_TONS = "weightTons"; // NOI18N 084 /** 085 * {@value #TYPE} 086 */ 087 public static final String TYPE = "type"; 088 /** 089 * {@value #COLOR} 090 */ 091 public static final String COLOR = "color"; 092 /** 093 * {@value #LOAD} 094 */ 095 public static final String LOAD = "load"; 096 /** 097 * {@value #MODEL} 098 */ 099 public static final String MODEL = "model"; 100 /** 101 * {@value #HP} 102 */ 103 public static final String HP = "hp"; 104 /** 105 * {@value #ROAD} 106 */ 107 public static final String ROAD = "road"; 108 /** 109 * {@value #NUMBER} 110 */ 111 public static final String NUMBER = "number"; 112 /** 113 * {@value #OWNER} 114 */ 115 public static final String OWNER = "owner"; 116 /** 117 * {@value #HAZARDOUS} 118 */ 119 public static final String HAZARDOUS = "hazardous"; 120 /** 121 * {@value #COMMENT} 122 */ 123 public static final String COMMENT = "comment"; 124 /** 125 * {@value #KERNEL} 126 */ 127 public static final String KERNEL = "kernel"; 128 /** 129 * {@value #FINAL_DESTINATION } 130 */ 131 public static final String FINAL_DESTINATION = "final dest"; 132 /** 133 * {@value #FINAL_DEST_TRACK } 134 */ 135 public static final String FINAL_DEST_TRACK = "fd&track"; 136 /** 137 * {@value #RETURN_WHEN_EMPTY} 138 */ 139 public static final String RETURN_WHEN_EMPTY = "rwe"; 140 /** 141 * {@value #SETOUT_COMMENT} 142 * 143 * @since 1.1 144 */ 145 public static final String SETOUT_COMMENT = "setout msg"; // NOI18N 146 /** 147 * {@value #PICKUP_COMMENT} 148 * 149 * @since 1.1 150 */ 151 public static final String PICKUP_COMMENT = "pickup msg"; // NOI18N 152 /** 153 * {@value #IS_LOCAL} 154 * 155 * @since 1.1 156 */ 157 public static final String IS_LOCAL = "isLocal"; 158 /** 159 * @since 5.4.0 160 */ 161 public static final String RETURN_WHEN_LOADED = "returnWhenLoaded"; 162 /** 163 * {@value #DIVISION} 164 * 165 * @since 5.4.0 166 */ 167 public static final String DIVISION = "division"; 168 /** 169 * {@value #UTILITY} 170 * 171 * @since 1.1 172 */ 173 public static final String UTILITY = "utility"; 174 /** 175 * {@value #BUILT} 176 */ 177 public static final String BUILT = "built"; // NOI18N 178 /** 179 * {@value #LEAD_ENGINE} 180 */ 181 public static final String LEAD_ENGINE = "leadEngine"; // NOI18N 182 /** 183 * {@value #CABOOSE} 184 */ 185 public static final String CABOOSE = "caboose"; // NOI18N 186 /** 187 * {@value #FRED} 188 */ 189 public static final String FRED = "fred"; // NOI18N 190 /** 191 * {@value #PASSENGER} 192 */ 193 public static final String PASSENGER = "passenger"; // NOI18N 194 /** 195 * {@value #TERMINATE} 196 */ 197 public static final String TERMINATE = "terminate"; // NOI18N 198 /** 199 * {@value #TRACK} 200 * 201 * @since 1.1 202 */ 203 public static final String TRACK = "track"; 204 /** 205 * {@value #DATE} 206 * 207 * @since 1.1 208 */ 209 public static final String DATE = "date"; 210 /** 211 * {@value #DESTINATION} 212 */ 213 public static final String DESTINATION = "destination"; 214 /** 215 * {@value #DESTINATION_TRACK} 216 */ 217 public static final String DESTINATION_TRACK = "dest&track"; 218 /** 219 * {@value #LEAD} 220 */ 221 public static final String LEAD = "lead"; // NOI18N 222 /** 223 * {@value #CAR_SUB_TYPE} 224 */ 225 public static final String CAR_SUB_TYPE = "carSubType"; // NOI18N 226 /** 227 * {@value #CAR_TYPE} 228 */ 229 public static final String CAR_TYPE = "carType"; // NOI18N 230 /** 231 * {@value #CAR_TYPES} 232 */ 233 public static final String CAR_TYPES = "carTypes"; // NOI18N 234 /** 235 * {@value #ROLLING_STOCK} 236 */ 237 public static final String ROLLING_STOCK = "rollingStock"; // NOI18N 238 /** 239 * {@value #OUT_OF_SERVICE} 240 */ 241 public static final String OUT_OF_SERVICE = "outOfService"; // NOI18N 242 /** 243 * {@value #NULL} 244 */ 245 public static final String NULL = "null"; // NOI18N 246 247 /** 248 * Prevent instantiation, since this class only contains static values 249 */ 250 private JsonOperations() { 251 throw new UnsupportedOperationException("There is no valid instance of this class"); 252 } 253}