jfreerails.world.terrain
Class Conversion

java.lang.Object
  extended by jfreerails.world.terrain.Conversion
All Implemented Interfaces:
java.io.Serializable, FreerailsSerializable

public class Conversion
extends java.lang.Object
implements FreerailsSerializable

This class represents the conversion of one cargo type to another one a tile.

Author:
Luke
See Also:
Serialized Form

Field Summary
private  int input
           
private  int output
           
private static long serialVersionUID
           
 
Constructor Summary
Conversion(int in, int out)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getInput()
           
 int getOutput()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

input

private final int input

output

private final int output
Constructor Detail

Conversion

public Conversion(int in,
                  int out)
Method Detail

getInput

public int getInput()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getOutput

public int getOutput()