|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Consist
Interface for a Consist Object, describing one or more cooperatively-operating locomotives.
JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
| Field Summary | |
|---|---|
static int |
ADVANCED_CONSIST
|
static int |
CS_CONSIST
|
static int |
POSITION_LEAD
|
static int |
POSITION_TRAIL
|
| Method Summary | |
|---|---|
void |
add(DccLocoAddress LocoAddress,
boolean directionNormal)
|
void |
addConsistListener(ConsistListener Listener)
|
boolean |
contains(DccLocoAddress address)
|
void |
dispose()
|
DccLocoAddress |
getConsistAddress()
|
String |
getConsistID()
|
ArrayList |
getConsistList()
|
int |
getConsistType()
|
boolean |
getLocoDirection(DccLocoAddress address)
|
int |
getPosition(DccLocoAddress address)
|
boolean |
isAddressAllowed(DccLocoAddress address)
|
void |
remove(DccLocoAddress LocoAddress)
|
void |
removeConsistListener(ConsistListener Listener)
|
void |
restore(DccLocoAddress LocoAddress,
boolean directionNormal)
|
void |
setConsistID(String ID)
|
void |
setConsistType(int consist_type)
|
void |
setPosition(DccLocoAddress address,
int position)
|
int |
sizeLimit()
is there a size limit for this type of consist? |
| Field Detail |
|---|
static final int ADVANCED_CONSIST
static final int CS_CONSIST
static final int POSITION_LEAD
static final int POSITION_TRAIL
| Method Detail |
|---|
void dispose()
void setConsistType(int consist_type)
int getConsistType()
DccLocoAddress getConsistAddress()
boolean isAddressAllowed(DccLocoAddress address)
int sizeLimit()
ArrayList getConsistList()
boolean contains(DccLocoAddress address)
boolean getLocoDirection(DccLocoAddress address)
void add(DccLocoAddress LocoAddress,
boolean directionNormal)
void restore(DccLocoAddress LocoAddress,
boolean directionNormal)
void remove(DccLocoAddress LocoAddress)
void setPosition(DccLocoAddress address,
int position)
int getPosition(DccLocoAddress address)
void addConsistListener(ConsistListener Listener)
void removeConsistListener(ConsistListener Listener)
void setConsistID(String ID)
String getConsistID()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||